| Author |
Message |
malrock1 Hangin' Around

Joined: Nov 04, 2006 Posts: 46 Location: Wanaka New Zealand
|
Posted:
Sun Oct 14, 2007 5:56 pm |
|
I have just started to get lots of abuse in the form of filter abuse - as an example
User Agent: Wget/1.1 (compatible; i486; Linux; RedHat7.3)
Query String:
Get String:
Post String:
Forwarded For: none
Client IP: none
Remote Address: 65.95.98.45
Remote Port: 58775
Request Method: GET
How can I block the useragent Wget ??
cheers |
|
|
|
 |
evaders99 Moderator

Joined: Apr 30, 2004 Posts: 2853
|
Posted:
Sun Oct 14, 2007 7:12 pm |
|
| Code: |
RewriteCond %{HTTP_USER_AGENT} ^Wget
RewriteRule ^.*$ http://127.0.0.1/ [R,L]
|
|
|
|
|
 |
malrock1 Hangin' Around

Joined: Nov 04, 2006 Posts: 46 Location: Wanaka New Zealand
|
Posted:
Sun Oct 14, 2007 7:21 pm |
|
Cheers for that - I assume I am poting that into my HTaccess file? |
|
|
|
 |
malrock1 Hangin' Around

Joined: Nov 04, 2006 Posts: 46 Location: Wanaka New Zealand
|
Posted:
Sun Oct 14, 2007 7:55 pm |
|
hmmm I put that into my htaccess file and I am still getting the same user agent - there are many many different IP address that it is being used from .... |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Sun Oct 14, 2007 9:04 pm |
|
Do you have a
RewriteEngine on
in your .htaccess?
Some hosts don't let you use .htaccess or certain features also. |
|
|
|
 |
malrock1 Hangin' Around

Joined: Nov 04, 2006 Posts: 46 Location: Wanaka New Zealand
|
Posted:
Sun Oct 14, 2007 9:32 pm |
|
ahh
that would help - I've put that in now at the start of the .htaccess file - hopefully should work now ... |
|
|
|
 |
Gremmie Former Moderator in Good Standing

Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
|
Posted:
Mon Oct 15, 2007 7:48 am |
|
I'm just guessing about that. In all of the examples in the Apache docs, they have a RewriteEngine on statement. But it isn't clear to me if it is needed. Let us know if the behavior changes now with that on. |
|
|
|
 |
malrock1 Hangin' Around

Joined: Nov 04, 2006 Posts: 46 Location: Wanaka New Zealand
|
Posted:
Mon Oct 15, 2007 12:31 pm |
|
that worked! No more Wget abuse. |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7487 Location: Arizona
|
Posted:
Tue Oct 16, 2007 5:18 am |
|
Gremmie, I have seen sites where it was not needed and others where it was. That is definitely the very first thing I always ask folks to try... and is why I now include it up front in my shortlinks.htaccess file. |
|
|
|
 |
|
|
|
|