I have been attacking this problem from a variety of angles, but keep running into obstacles. Would greatly appreciate any advice.
I have a site that is password protected on the home page. I cannot have members - only the single password access. Unfortunately this means people can still access the other page content with a direct URL. I would like to prevent the ability to jump to a direct page.
A couple things I’ve tried that haven’t worked:
- Accessing session variables to determine if a user has logged in to the homepage. Unfortunately using wix-location doesn’t work because it’s too slow. It loads the page first and then redirects. So that led me to routers. Can’t seem to figure out how to get session data to the backend router pages. Is that even possible?
- Routers. I have tried a number of different techniques with routers. I have tracked if the referring page is internal to the site and if it’s not, I’ll jump back to the homepage. This worked partially, but ran into issues when clicking on things like the “Top” button or image pop-ups from a gallery.
- I can track the front-end user and the backend user that requested the router, but they are not the same data so can’t seem to use that to track a user across pages. Not sure how to do this without session data (which is not accessible from the router).
- I’ve tried sending dynamic data via a URL to a blank router page about which page to route to, but that can just be spoofed to get to the final page.
Any other way to send data to a router? Any other way to redirect a page outside of routers and wix-location?
Any thoughts on other options I could try? Hopefully there’s something simple I’m missing. thanks!