PDA

View Full Version : ip deny with .htaccess


VIROKILL
12-04-2006, 11:12 PM
i have a .htaccess file in my website. i was wondering if there was a way that i could redirect a 403 error to my 403.shtml page.

here is my .htaccess

AuthName "XBL"
AuthType Basic
<Limit GET POST>
order allow,deny
allow from all
deny from xxx.xxx.xxx.xxx
</Limit>

dudum
12-06-2006, 05:20 AM
You should add ErrorDocument 403 http://site_url/403.shtml to .htaccess
The redirect will be made to http://site_url/403.shtml when Error 403 occurs.

VIROKILL
12-06-2006, 10:58 PM
thanks!!!!!