|
|
 |
Re: FN-FORUM Banning IP using htaccess
date posted 8th January 2001 19:31
At the top of the .htaccess file add or edit the following directives
order deny,allow
deny from 24.80.17.5
deny from 65.103.91.7
If a "Limit.../Limit" directive already exists in your .htaccess file, don't
add a new one; instead, edit the existing one to look like the example
above. Replace the IP addresses listed with the ones you'd like to ban. You
can ban as many IP addresses as you need; each one must have its own "deny
from" directive on a separate line. Anyone who tries to visit your website
from an IP banned in your .htaccess file will receive a "403 Forbidden"
error message.
Bear in mind that the majority of IP addresses are assigned dynamically by a
users ISP nowadays so this is not a trerribly effective method of banning
people...
Cheers
Kif
----- Original Message -----
From: "Marc Weaver" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, January 08, 2001 6:02 PM
Subject: FN-FORUM Banning IP using htaccess
> >From time to time I need to ban certain IP addresses from accessing my
> site. I already use .htaccess for 404 redirects and basic
> authentication but I have not been able to ban an IP address as yet.
> Does anyone have any idea what the correct syntax is for achieving this?
> and if you do, is it then possible to redirect them to another page of
> my choice? (so i can give a good rollocking)
>
> Cheers
>
>
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 1000 freelancers
>
> Freelancers and Freelance Jobs
> http://www.freelancers.net
>
> To post to the Forum:
> [EMAIL REMOVED]
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
> To subscribe to the digest for this list or for further information please
visit:
> http://www.freelancers.net/forum.html
|
 |
|