blocking IP's & domains with htaccess

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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:

order allow,deny
deny from
deny from
deny from
allow from all
RewriteEngine on
# 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

Bud wrote:
Quoted text here. Click to load it

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
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline