Only Access Site thru Home Page no Direct Access to Other Site Pages
Permalink
I have created a site that has a splash page with age validation for entry into the Website. The splash page is the Home page of the site. I need make it so the site is only accessible through the home page no direct access to other site pages.
do people have to log in or do they just need to click a button to say they're over 18?
They just click a link that says they are 18. and it takes them to the site.
You should probably create a user called over18 and upon clicking that link you should log them in as that user. Something like
Where 13 is the uID for the over18 user. Then just add that user to a a group called "Full Access" and set page permissions for that group accordingly.
$user = User::getByUserID(13, true);
Where 13 is the uID for the over18 user. Then just add that user to a a group called "Full Access" and set page permissions for that group accordingly.
exactly what I was thinking - some kind of 'soft' login...