PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
giantmidget
Hangin' Around


Joined: Nov 27, 2005
Posts: 44

PostPosted: Tue Nov 07, 2006 2:57 pm Reply with quote Back to top

None, only a couple redirects.
View user's profile Send private message
montego
Site Admin


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

PostPosted: Wed Nov 08, 2006 6:30 am Reply with quote Back to top

Then Rewrite is not allowed by your host (I think). I would check with them. These statements work as they are a straight copy-and-paste from my own .htaccess file.

Anyone else have an issue with the statements I posted?
View user's profile Send private message Visit poster's website
Tao_Man
Involved
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Wed Nov 08, 2006 2:38 pm Reply with quote Back to top

I tried it and got error 500, I played around with it and there seems to be only one line that is the problem
Code:

RewriteCond %{HTTP_USER_AGENT} ^f***                    [NC,OR]


If I comment out that one line it works just fine
View user's profile Send private message Visit poster's website
xxxSNIPExxx
New Member
New Member


Joined: Mar 10, 2005
Posts: 5
Location: Netherlands, Alkmaar

PostPosted: Wed Nov 08, 2006 4:44 pm Reply with quote Back to top

Tao_Man wrote:
I tried it and got error 500, I played around with it and there seems to be only one line that is the problem
Code:

RewriteCond %{HTTP_USER_AGENT} ^f***                    [NC,OR]


If I comment out that one line it works just fine


For me to...Thx for the solution Cheers
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Thu Nov 09, 2006 6:22 am Reply with quote Back to top

Uuugghhhh... I see what has happened now! The blasted NUKE censorship function! What I posted is completely correct, however, do you see the three asterisks? Guess what that is supposed to be. Yes, it is a four letter word which starts with "f" and ends in "k".

Sorry about not catching that!
View user's profile Send private message Visit poster's website
Tao_Man
Involved
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Thu Nov 09, 2006 10:40 am Reply with quote Back to top

Kinda wondered if that was the case.
View user's profile Send private message Visit poster's website
xxxSNIPExxx
New Member
New Member


Joined: Mar 10, 2005
Posts: 5
Location: Netherlands, Alkmaar

PostPosted: Fri Nov 10, 2006 12:12 am Reply with quote Back to top

I still get visitors like

Code:
libwww-perl/5.65
libwww-perl/5.805
libwww-perl/5.79



This rule should keep them off......right?
Code:
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/[0-9].[0-9]* [OR]



Those i ad manualy.
Code:
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/5.65 [OR]
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/5.805 [OR]
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/5.79 [OR]


That works right.....does somebody now why?
Must i ad for example...to block them all

Code:
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/[0-9].[0-9][0-9]* [OR]
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/[0-9].[0-9][0-9][0-9]* [OR]
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Fri Nov 10, 2006 6:13 am Reply with quote Back to top

I'll have to look through my logs as I hadn't seen anything come through on this...

Hardcoding as you have done should work just fine, but I can't let the other go. I'll check into it.
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Fri Nov 10, 2006 6:34 am Reply with quote Back to top

Very odd. I'm not seeing any libwww-perl/n.nnn anything.

I also just now checked the pattern against these examples and I am getting exact hits, so that should be working. I check them here:
Only registered users can see links on this board!
Get registered or login to the forums!


Excellent tool!
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Fri Nov 10, 2006 8:57 am Reply with quote Back to top

I don't want anyone to use any version of libwww-perl, so I block the entire thing
Just ^libwww-perl
View user's profile Send private message Visit poster's website
xxxSNIPExxx
New Member
New Member


Joined: Mar 10, 2005
Posts: 5
Location: Netherlands, Alkmaar

PostPosted: Fri Nov 10, 2006 10:21 am Reply with quote Back to top

Just as simple as that Thx... Very Happy
View user's profile Send private message Visit poster's website
malrock1
Hangin' Around


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

PostPosted: Sat Nov 11, 2006 4:25 pm Reply with quote Back to top

I have this in my .htaccess

***********************************
# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
#<Files .ftaccess>
# deny from all
#</Files>

#<Files .staccess>
# deny from all
#</Files>

#<Files admin.php>
# <Limit GET POST PUT>
# require valid-user
# </Limit>
# AuthName "Restricted"
# AuthType Basic
# AuthUserFile
Only registered users can see links on this board!
Get registered or login to the forums!

#</Files>

RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/*.* [OR]

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------
************************************

I am still getting libwww-perl scripts trying to access my BB ........
How can I stop it?
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Sat Nov 11, 2006 4:53 pm Reply with quote Back to top

I think all you need to have is

RewriteEngine on

RewriteCond %{HTTP_USER_AGENT} ^libwww-perl

RewriteEngine off

I'm sure someone will correct me if I'm wrong. Wink
View user's profile Send private message
montego
Site Admin


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

PostPosted: Sat Nov 11, 2006 5:32 pm Reply with quote Back to top

I have tested both now using the regex tester and both will work, however, evaders' (which is jakec's) is the simplest.

malrock1, if jakec's additional RewriteEngine On/Off statements don't do it, then maybe your host doesn't have that module turned on? You might want to check with them. phpinfo() might not even show you whether it is loaded or not.
View user's profile Send private message Visit poster's website
malrock1
Hangin' Around


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

PostPosted: Sun Nov 12, 2006 1:50 pm Reply with quote Back to top

No I'm stil getting user agents coming at me with libwww-perl

had another 15 last night
*************************
RewriteEngine on

RewriteCond %{HTTP_USER_AGENT} ^libwww-perl

RewriteEngine off
**************************
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Sun Nov 12, 2006 2:11 pm Reply with quote Back to top

Just want to check, as Montego suggested have you checked with your host whether that module is turned on?

Are all the IP addresses the same? you could block the IP addresses.
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Nov 12, 2006 3:17 pm Reply with quote Back to top

You'll need both a RewriteCond and a RewriteRule

Code:

RewriteCond %{HTTP_USER_AGENT} ^libwww-perl   
RewriteRule ^.*$ - [L]         
View user's profile Send private message Visit poster's website
montego
Site Admin


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

PostPosted: Tue Nov 14, 2006 7:13 am Reply with quote Back to top

Evaders, I have this to not work as well as Tao_Man. I changed my RewriteRule to what you show and started getting these again. As soon as I changed it back to the following, it worked again (and no libwww-perl):

RewriteRule ^.*$
Only registered users can see links on this board!
Get registered or login to the forums!
[R,L]

Here is where Tao_Man and I discussed this:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Nov 14, 2006 8:07 am Reply with quote Back to top

Ah sorry, I thought the dash was to stop Apache from processing.

We'll just send the redirect as you did, back to the site itself

Code:

RewriteCond %{HTTP_USER_AGENT} ^libwww-perl   
RewriteRule ^.*$ http://127.0.0.1 [R,L]   
View user's profile Send private message Visit poster's website
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

PostPosted: Tue Nov 14, 2006 9:06 am Reply with quote Back to top

That's a smart change to make! Good idea guys.
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Nov 14, 2006 2:32 pm Reply with quote Back to top

I was thinking, maybe do an internal redirect to a script that generates gibberish nonstop. It would keep sending data until the connection times out (or would it, through libwww-perl?)
Most of the scripts don't follow external redirects unless you set it to. I wonder if anyone knows enough about libwww-perl

We could seriously slow these bot machines down if its possible to send them junk and hog the connection Smile


EDIT:

From what I'm reading, the timeout default is 180 seconds.
Only registered users can see links on this board!
Get registered or login to the forums!

But it can easily be changed to a smaller amount. So it would be really easy to bypass. Oh well
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.

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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum