Reply
blocking user agent in htacces (syntax prob)
Old 07-01-2007, 01:29 PM blocking user agent in htacces (syntax prob)
Banned

Posts: 253
Name: Michel Samuel
I'm trying new approach in my htaccess file.

I attempted this but I get apache server errors. I know I'm getting the syntax wrong.

%{HTTP_USER_AGENT} ^ia_archiver-web\.archive\.org [NC,OR]

Can anyone help out here..
Michel Samuel is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 07-01-2007, 02:44 PM Re: blocking user agent in htacces (syntax prob)
Riane's Avatar
Super Talker

Posts: 149
Name: Jordan
Location: Chicago, IL
RewriteCond %{REMOTE_ADDR} ^64.62.XXX.YYY [OR]
RewriteCond %{REMOTE_ADDR} ^62.62.XXX.ZZZ
RewriteCond %{HTTP_user_AGENT} "some\ user\ agent"
RewriteRule .* - [F,L]



"This reads as: IF you come from EITHER of the ip addresses, AND you're using "some user agent" THEN you can't enter. "

Also:
http://www.besthostratings.com/artic...-bad-bots.html
http://diveintomark.org/archives/200..._to_go_to_hell

Riane is offline
Reply With Quote
View Public Profile Visit Riane's homepage!
 
Old 07-01-2007, 04:06 PM Re: blocking user agent in htacces (syntax prob)
Banned

Posts: 253
Name: Michel Samuel
Let me ask you this...
The agent is exactly this.... "* ia_archiver-web.archive.org *"
Do I need the " \ " before the " . " in the statement ?

Also for the agent using the IP address format...
Can I just block 208.70 and leave the rest off to limit that entire range ?
Michel Samuel is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to blocking user agent in htacces (syntax prob)
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12970 seconds with 13 queries