PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
malrock1
Hangin' Around


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

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

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 to the forums!

Get String:
Only registered users can see links on this board!
Get registered or login to the forums!

Post String:
Only registered users can see links on this board!
Get registered or login to the forums!

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
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2853

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

Code:

RewriteCond %{HTTP_USER_AGENT} ^Wget 
RewriteRule ^.*$ http://127.0.0.1/ [R,L]
View user's profile Send private message Visit poster's website
malrock1
Hangin' Around


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

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

Cheers for that - I assume I am poting that into my HTaccess file?
View user's profile Send private message
malrock1
Hangin' Around


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

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

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 ....
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

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

Do you have a

RewriteEngine on

in your .htaccess?

Some hosts don't let you use .htaccess or certain features also.
View user's profile Send private message
malrock1
Hangin' Around


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

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

ahh Embarassed

that would help - I've put that in now at the start of the .htaccess file - hopefully should work now ...
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

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

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.
View user's profile Send private message
malrock1
Hangin' Around


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

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

that worked! No more Wget abuse.
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum