PDA

View Full Version : more htaccess stuff



mobilebadboy
03-05-2007, 11:41 PM
Ok, I'm getting rather annoyed with this. If I add the following to my htaccess:

Deny from .comcast.net

I cannot access any part of my site. If I do this for most other hosts, it does not block them. I'm getting a new spammer on my blog (lord knows I never should have coded in comments in my recent rebuild).

I add:

Deny from .wnet.ua

Still gets through.

Why will it block me, but not them?

rpanella
03-06-2007, 02:45 AM
Are you sure that its the same spammer accessing from the same host? Could be a different person or the same person using a proxy or different internet connection.
________
Lincoln l-head v12 engine specifications (http://www.ford-wiki.com/wiki/Lincoln_L-head_V12_engine)

mobilebadboy
03-06-2007, 12:29 PM
No, it's the same one. I log the IP with each comment, and the same host manages to appear in my site stats with every spam comment. The site gets relatively little traffic so it's easy to compare.

It's not just that one though. I block hosts all the time, or IPs, and they still manage to constantly make it to the site. But again if I block my IP or comcast.net, I'm blocked.

rpanella
03-06-2007, 03:45 PM
From http://httpd.apache.org/docs/1.3/mod/mod_access.html:


A (partial) domain-name
Example: Allow from apache.org
Hosts whose names match, or end in, this string are allowed access. Only complete components are matched, so the above example will match foo.apache.org but it will not match fooapache.org. This configuration will cause the server to perform a double reverse DNS lookup on the client IP address, regardless of the setting of the HostnameLookups directive. It will do a reverse DNS lookup on the IP address to find the associated hostname, and then do a forward lookup on the hostname to assure that it matches the original IP address. Only if the forward and reverse DNS are consistent and the hostname matches will access be allowed.
________
Milf vid (http://www.****tube.com/categories/28/milf/videos/1)