Forum Replies Created
-
AuthorPosts
-
Uwe Trenkner
ParticipantI 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.
Uwe Trenkner
ParticipantSure, 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=9Uxc5bNxJbjFHB5K6EfRNote, 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.
Uwe Trenkner
ParticipantThank 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.
Uwe Trenkner
ParticipantI was also looking into where and how this info is stored. Where could I find this info in the database?
Thanks,
Uwe. -
AuthorPosts