I’ve gone all through the cPanel, can see the .htaccess file and the 404 file, but just can’t find the 403 file ? Anyone know how I can find it please?
You simply have to create it…
It’s already there, as it can be seen when someone enters from a IP banned address. Any other ideas?
have you added it to htaccess? So the server knows where to find it.
I can see no reference in the htaccess file to the 403 file
No in htacess. Open your htaccess file, add
ErrorDocument 403 /path/403.html
it doesn’t need to be html. It can be php or asp
The 403 is already showing, but am trying to find out where the 403 file is, so that I can edit the text on there slightly. Any ideas how I can get to it?
where does the htaccess file point to?
the only file thats mentioned in the htaccess is the 404
You lost me. You said
Showing where?
It shows in the address bar
The browser has a built in 403 file, so if you do not make a 403 file, and link to it in htaccess, your site uses the default file.
Thanks - any ideas how I can edit that 403 file please?
You can make a file name it anything you want. I recommend 403, error403 or something. Then edit your htaccess file with the code I suggested in #6. Once created edit that like any regular file…
Brilliant Ryan - many thanks - I was really looking for the actual default file to edit, but it’s obviously easier to just make my own and edit that
Cheers
Aaargh, now getting :
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies.
Would this be ok in the htaccess ?
ErrorDocument 403 http://www.websitename.com/403.php
Welcome. You cannot edit the default file since it doesn’t exsist there, you only can over write it and point your htaccess to it.
No you would only need
ErrorDocument 403 /403.php
Many thanks