Forum Moderators: coopster & phranque

Message Too Old, No Replies

SetEnvIf Remote_Addr ^11\.111\.1\.11$ ban

SetEnvIf Remote_Addr ^11\.111\.1\.11$ ban

         

StopSpam

11:32 am on Jul 11, 2003 (gmt 0)

10+ Year Member



i got a lot of these ip ban lines in my htaccess file
there all blocked spider bots. i use the ban bot script

SetEnvIf Remote_Addr ^11\.111\.1\.11$ ban

is there a way that the htaccess file reads the banned ip's not from htaccess file but from a data.txt file
sonot all ips are int he htacces sit self

is this posible ..

can htaccess file open diff file read ip's and ban them
same way as

SetEnvIf Remote_Addr ^11\.111\.1\.11$ ban

claus

12:12 pm on Jul 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Someone may counter me on this, but i think the answer is no, and that the workaround is to redirect all incoming traffic to a script that:

a) checks the datafile for IP-match
b) serves errormessages and headers when needed
c) redirects to desired page when needed

/claus