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 Link to comment https://forums.phpfreaks.com/topic/292645-access-denied-page/ Share on other sites More sharing options...
hansford Posted November 22, 2014 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.'); Link to comment https://forums.phpfreaks.com/topic/292645-access-denied-page/#findComment-1497344 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.