I am making n alcoholic site that has a gateway for age verification wish is called default.html an it’s in the root of my webspace. I have used Joomla which has two index files, one from the root folder and the other from the template that i am using. Now i know i can restrict direct access using .htaccess file but my question is should i put it in the root folder or in my templates folder?
Share
I set a cookie in the gateway page, then check if it exists in the template’s index file. So once you land on the gateway the cookie is set.
This is the code that sets the cookie
Then in the templates index file i check if the cookie is set and if not, it redirects to the gateway page called default.php. Below is the code snippet.