NerD
24-11-2000, 16:24
this is driving me nuts :(
I'm running a forum on an Apache Server and i want to be able to ban known undesirables ( spammers, e.t.c. ) using .htaccess
i tried
order mutual-failure
deny from .spammers.com
allow from all
it's meant to ban everyone with ips ending in .spammers.com but it just let everyone in coz it seems the allow line is overriding the deny line. I dont understand this because mutual-failure is meant to mean only ppl who appear in the allow list but do NOT appear in the deny list are allowed in and also there is meant to be no short-circuiting the evaluation process.
this works but is inconvenient
order mutual-failure
deny from .spammers.com
allow from .jp .net .co.uk
because i would have to enter almost infinite domain endings like .jp .ru so that foreign vistors arent denied
I'm sure there is something small i'm overlooking.
I'm running a forum on an Apache Server and i want to be able to ban known undesirables ( spammers, e.t.c. ) using .htaccess
i tried
order mutual-failure
deny from .spammers.com
allow from all
it's meant to ban everyone with ips ending in .spammers.com but it just let everyone in coz it seems the allow line is overriding the deny line. I dont understand this because mutual-failure is meant to mean only ppl who appear in the allow list but do NOT appear in the deny list are allowed in and also there is meant to be no short-circuiting the evaluation process.
this works but is inconvenient
order mutual-failure
deny from .spammers.com
allow from .jp .net .co.uk
because i would have to enter almost infinite domain endings like .jp .ru so that foreign vistors arent denied
I'm sure there is something small i'm overlooking.