Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN NukeSentinel(tm) issues
Author Message
malrock1
Hangin' Around



Joined: Nov 04, 2006
Posts: 47
Location: Wanaka New Zealand

PostPosted: Sun Oct 14, 2007 5:56 pm Reply with quote

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: [ Only registered users can see links on this board! Get registered or login! ]
Get String: [ Only registered users can see links on this board! Get registered or login! ]
Post String: [ Only registered users can see links on this board! Get registered or login! ]
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

_________________
Life's a rock
go climb it
[ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Oct 14, 2007 7:12 pm Reply with quote

Code:


RewriteCond %{HTTP_USER_AGENT} ^Wget 
RewriteRule ^.*$ http://127.0.0.1/ [R,L]

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
malrock1







PostPosted: Sun Oct 14, 2007 7:21 pm Reply with quote

Cheers for that - I assume I am poting that into my HTaccess file?
 
malrock1







PostPosted: Sun Oct 14, 2007 7:55 pm Reply with quote

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: 2415
Location: Iowa, USA

PostPosted: Sun Oct 14, 2007 9:04 pm Reply with quote

Do you have a

RewriteEngine on

in your .htaccess?

Some hosts don't let you use .htaccess or certain features also.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
malrock1







PostPosted: Sun Oct 14, 2007 9:32 pm Reply with quote

ahh Embarassed

that would help - I've put that in now at the start of the .htaccess file - hopefully should work now ...
 
Gremmie







PostPosted: Mon Oct 15, 2007 7:48 am Reply with quote

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







PostPosted: Mon Oct 15, 2007 12:31 pm Reply with quote

that worked! No more Wget abuse.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Oct 16, 2007 5:18 am Reply with quote

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN NukeSentinel(tm) issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©