Hey all,
For a project I’m working on I need a specific section of the website to be visible only for visitors from one country, visitors from all other countries should not be able to view this menu item and page. I think I can bend the Page Render IP-restriction module to set a $page->variable indicating if the visitor is from that country or not. But I’ve got some questions
Caching the IP-restriction action
Would it be advisable to save this variable in the user’s session so the site doesnt have to go through all ip-ranges to check up on this for every page load?
Caching the website pages
This is the tricky one (I think). Can I still cache the website pages when not all visitors should be served the same page content? I think I’d need two versions of each cached page, but wouldnt really know if that is possible?
Thanks for reading and your insights are very welcome!