Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact
You are here: Home

Uwe Trenkner

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)
← 1 2
  • Author
    Posts
  • May 2, 2019 at 2:35 pm in reply to: Subscription and paywalled content & GoolgeBot #18097
    Uwe Trenkner
    Participant

    I think any solution (e.g. a Google-Add-On), will have to do 3-4 things:

    • add a class the the content which identifies the paywall’ed part of the page
    • add the necssary json to tell Google that there is paywall’ed content and what the CSS class of that content is
    • ensure that GoogleBot gets to see the full post (ideally, not identified only by User-Agent, but by reverse DNS lookup https://support.google.com/webmasters/answer/80553). I don’t know of your Google First Click Free addon already did this
    • add the noarchive meta-tag to the page, so that Google does not show the link to the cached version.

    So, it is not too simple, but it looks doable.

    May 2, 2019 at 1:54 pm in reply to: Allow bypassing protection? #18096
    Uwe Trenkner
    Participant

    Sure, I gladly share my hack – maybe it helps others, too:

    I add in /simple-membership/classes/class.swpm-access-control.php between line 19 and 20

    
    if (isset($_GET['swpm-bypass']) and $_GET['swpm-bypass']=='9Uxc5bNxJbjFHB5K6EfR'){
    	return true;
    }
    

    This allows full access to the post if I add the GET-variable swpm-bypass=9Uxc5bNxJbjFHB5K6EfR to the URL, e.g. https://www.mydomain.com/my-great-post-title/?swpm-bypass=9Uxc5bNxJbjFHB5K6EfR

    Note, only use this on HTTPS websites – otherwise the string will go unencrypted over the internet…

    And, of course, don’t use 9Uxc5bNxJbjFHB5K6EfR as your “bypass-word”. It’s just an example.

    April 29, 2019 at 7:12 am in reply to: Allow bypassing protection? #18034
    Uwe Trenkner
    Participant

    Thank you for the link. But the API is only about members. I am looking for a possibility to allow a server in our network access to protected content. The server could be identified by IP address and or some GET-Parameter (similar to how you use the API key).

    I know how I can achieve this by adding a single line of code to the validation function of SWMP. But I would like to not go down this route as I would have to re-do this after every upgrade of SWPM. That’s why I was looking for an “official” way which works without changing the source code.

    April 15, 2019 at 8:48 pm in reply to: How to programatically protect post? #17908
    Uwe Trenkner
    Participant

    I was also looking into where and how this info is stored. Where could I find this info in the database?

    Thanks,
    Uwe.

  • Author
    Posts
Viewing 4 posts - 16 through 19 (of 19 total)
← 1 2
« Previous Page

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy