Forum Moderators: phranque

Message Too Old, No Replies

.htaccess - How do I redirect blocked IPs to a special page?

         

Hetor

1:19 pm on Aug 6, 2009 (gmt 0)

10+ Year Member



Hi, I'm not really good with .htaccess and I need help. I want to redirect blocked IPs to a special page (lets say lolbant.html). Yet it tries to use 403 page which is defined in ErrorDocument, with no success. What I need is:

1) To redirect all banned IPs to [my-site-url-here.net...]
2) Allow banned IPs to access lolbant.html and pictures that are used in that page.

How can I do it? Please help, thanks.

EDIT: Just don't want to create a new thread, how do I ban an IP range?