B3ta Posted December 17, 2020 Share Posted December 17, 2020 Currently I have an html Age verification modal that doesn't allow the visitor to browse the website until he confirm his legal age. What would be the best way to serve the visitors and to robots the procache generated page and get rid of the annoying age confirmation that pops up on each page reload? Thanks! Link to comment Share on other sites More sharing options...
AndZyk Posted December 18, 2020 Share Posted December 18, 2020 Hello @B3ta, you could save the decision with a session variable (set). Then you could check (get) if a session variable is set and don't display the modal. As far as I know are session variables and ProCache working good together. Regards, Andreas Link to comment Share on other sites More sharing options...
Zeka Posted December 18, 2020 Share Posted December 18, 2020 48 minutes ago, AndZyk said: As far as I know are session variables and ProCache working good together. I think they don't. ProCache bypasses PHP. @B3ta Why don't use cookies for that? 1 Link to comment Share on other sites More sharing options...
B3ta Posted December 18, 2020 Author Share Posted December 18, 2020 It seems that my colleague came up with this solution. It seems that it works just fine. Thank you for your answers! Link to comment Share on other sites More sharing options...
wbmnfktr Posted December 18, 2020 Share Posted December 18, 2020 If you are handling real Adult content this is not enough - at least in the EU region. You can use a lot of cookies and checks to serve rendered HTML (depending on your region with a small whitelist/blacklist of words or based on corporate decisions without any of those) without any images or videos and you are fine. See recent changes over at P*rnh*b. They had to delete a lot of content due to reasons. Maybe define your or your business's goals to make the need more clear. There are a lot of ways to skip certain things. As said before... if you have to deal with REAL ADULT content... there forums out there that describe ways to get around restrictons. Most basic solution is - as far as I know - log in those who confirm with YES, OVER 18 WHATEVER... and deliver content which is viewable for those. You might want to use Login Register Pro for that. Which works fine as I have heard from others. *cough* 1 Link to comment Share on other sites More sharing options...
AndZyk Posted December 19, 2020 Share Posted December 19, 2020 19 hours ago, Zeka said: I think they don't. ProCache bypasses PHP. I have used session variables in combination with ProCache a few times and it always worked. But that is just my experience. 2 Link to comment Share on other sites More sharing options...
horst Posted December 19, 2020 Share Posted December 19, 2020 On 12/18/2020 at 4:56 PM, Zeka said: I think they don't. ProCache bypasses PHP. @B3ta Why don't use cookies for that? 10 hours ago, AndZyk said: I have used session variables in combination with ProCache a few times and it always worked. But that is just my experience. It works when used via JS AJAX calls in (static) HTML (ProCache)pages. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now