Jump to content

Access denied page


ch4rlie

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.