PDA

View Full Version : 403 Error page


Rob
16/05/2007, 16:24
I have read the cPanel X2 tutorials but no wiser on Error pages. If I wish to forbid access to /gelepages.css in my root directory, do I just enter the Requested url tag and the text to be displayed? Tried various inserts without success.

James
16/05/2007, 17:47
Any particular reason why you want to deny access to a single .css file - what's it's purpose if no one can access it? Or are you "including" it from another file...

The error pages are bascially the "page to show if a file or directory is being protected or the visitor is forbidden to view the file or directory".

You could put anything in there, such as your own text saying "Go away from this page!" etc. It just creates a page for use with 403 errors instead of using the default ones - it has no option to choose any file...

Cheers

James

Rob
16/05/2007, 18:07
I take it that the page has to be protected or all visitors are forbidden. Can I deny access to an IP address?

Thanks
Rob

James
16/05/2007, 18:12
That page itself doesnt need to be forbidden. It just creates a file called 403.html - which is uses when a 403 occurs to any file you stop people from accessing. You can deny it to an IP using a standard .htaccess file :)

Rob
16/05/2007, 18:19
Thank you. the .htaccess is my solution then

Regards
Rob