Deny an IP and custom 403 page can't work?
Okay, so if using my .htaccess I deny a spammers IP and want to use a nice custom 403 page it creates a situation where they cannot actually get to my custom 403 page since they are denied access to the site - and thus that custom 403 page - so they get the bland generic server 403 error.
How are you suppose to get around this, here is the full .htaccess example
ErrorDocument 403 /403.php
deny from 188.8.131.52
deny from 184.108.40.206
allow from all
I solved it..
you have to put your 403 file into a directory - e.g., /sorrycharlie/403.php - and then add an .htaccess file IN that directory that does allow anyone to access it.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)