ch4rlie Posted November 22, 2014 Share Posted November 22, 2014 I want to make it so public users cant access the index of/ page, how do I do that? Thanks Quote Link to comment Share on other sites More sharing options...
Solution hansford Posted November 22, 2014 Solution Share Posted November 22, 2014 Normally you would do this is the .htaccess file, but to do it in php you need to put some command to exit or stop execution if the index page is requested. If using a framework you'll need to specify the pages forbidden. If not, then a simple line at the top of the index page. exit('Unfortunately you don\'t have access to this page.'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.