Simple Membership Plugin › Forums › Simple Membership Plugin › Mobile Users Bypass Protection
- This topic has 4 replies, 2 voices, and was last updated 10 years, 9 months ago by
Steve Cooper.
-
AuthorPosts
-
February 12, 2016 at 10:25 pm #5251
Steve Cooper
ParticipantMy site has only one Membership level and on the desktop it is protected fine but when visitors access it via a mobile device they bypass the protection and it logs them in automatically as a registered member.
I have my site connected to CloudFlare free account as its quite popular and without this activated would grind to an halt.
Is it possibly CloudFlare that is throwing a cached version of this user and making it available to everyone or is it a strange but on the Membership plugin as it only does this when viewed by mobile
February 12, 2016 at 10:52 pm #5252Steve Cooper
ParticipantJust to answer this as I think I have found the problem.
CloudFlare is set to cache all pages so it was caching the login page and handing out the login details to everyone so added a rule in CloudFlare telling it not to cache the log in page and hopefully it now appears to be fine.
February 13, 2016 at 4:33 pm #5292Steve Cooper
ParticipantUnfortunately I thought I had fixed the problem but this isn’t the case.
I have added various rules to CloudFlare and told it not to cache on the selected pages but it still keeps giving access to everyone on mobile as it seems to be storing a cookie of a previous user and thinks everyone that visits is that user.
I have turned off CloudFlare to see if that stops the problem but due to the amount of images on the website and its popularity a CDN or caching plugin is vital.
February 13, 2016 at 10:09 pm #5300mbrsolution
ModeratorHi, do you also have a cache plugin apart from using a CDN system? If you do have a cache plugin have you also set up the rules not to cache the login page?
February 13, 2016 at 10:21 pm #5302Steve Cooper
ParticipantHi, I removed CloudFlare completely by returning my DNS nameservers back to the original and that appears to have sorted the problem so clearly CloudFlare was still caching somewhere even though I told it not to cache the membership pages.
My new problem I have is if a visitor doesn’t click Remember Me when logging in it instantly logs them out when they try to view protected content.
-
AuthorPosts
- You must be logged in to reply to this topic.