Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- blocking IP's & domains with htaccess
May 25, 2008, 9:14 pm
rate this thread
I'm a newbie at server-side managment, but was wondering if anyone could
help me with the protocol of blocking "bad" referrers or IP #'s...?
there's a site ID'd in my server logs that seems to be using my photo
galleries for spamming. It's something like:
I've been advised to do a HTACCESS file like this:
deny from 220.127.116.11
deny from 127.0.0.2
deny from 127.0.0.3
allow from all
# Options +FollowSymlinks
RewriteCond % twcny.res.rr\.com [NC]
RewriteRule .* - [F]
which contains the offending sites (not sure about the 127.0.0... ?)
any comments or help with this appreciated...
Re: blocking IP's & domains with htaccess
The 127.x.x.x IPs are reserved for local use. They should not be routeable.
The rest should work - but try alt.apache.configuration to make sure.
That's where I go for apache configuration help.
Remove the "x" from my email address
JDS Computer Training Corp.