Click here to get back home

blocking IP's & domains with htaccess

 HomeNewsGroups | Search | About
 alt.www.webmaster    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
blocking IP's & domains with htaccess Bud 05-25-2008
Posted by Bud on May 25, 2008, 5:14 pm
Please log in for more thread options
Hi,

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:
twcny.res.rr.com

I've been advised to do a HTACCESS file like this:

order allow,deny
deny from 74.67.194.17
deny from 127.0.0.2
deny from 127.0.0.3
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...

bud



Posted by Jerry Stuckle on May 25, 2008, 8:11 pm
Please log in for more thread options
Bud wrote:
> Hi,
>
> 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:
> twcny.res.rr.com
>
> I've been advised to do a HTACCESS file like this:
>
> order allow,deny
> deny from 74.67.194.17
> deny from 127.0.0.2
> deny from 127.0.0.3
> 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...
>
> bud
>
>

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.
jstucklex@attglobal.net
==================

Similar ThreadsPosted
.htaccess blocking March 13, 2006, 1:57 am
.htaccess domain blocking error January 10, 2005, 2:56 pm
Any way to tell if two IP's point to same server? July 21, 2005, 10:38 pm
Multiple IP's in cPanel May 9, 2006, 6:19 pm
important question about vBulletin boards and admins, and IP's January 22, 2007, 10:07 am
Re: Multiple Domains Parked Domains Domain Aliases August 31, 2006, 8:33 pm
A unique htaccess config for an htaccess guru! April 23, 2006, 5:37 pm
Blocking an intruder March 3, 2006, 1:50 pm
IP blocking by server? September 2, 2006, 10:34 am
image blocking November 20, 2006, 6:23 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap