This is a discussion on Block useragent with htaccess within the Coding Help forums, part of the Webmaster Help category; I am trying to block this agent with htaccess and need help with the code. so far I have tried ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| give this a shot Code: RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Car Parts & Accessories Car Parts :. Cars Ireland Cars Ireland :. I Have 2 Find It Directory SEF Directory |
| |||||
| Thanks for that louie worked fine background to this was I was receiving a few hundred requests a day from multiple ip s with this usur agent not sure what was going on so I decided to kick them out the requests came every three hours on the half hour . with in 3 mins of banning this user agent I had over 80 403 , and then 3 requests from different IP s using a similer user agent which I traced back to web sense ? |
| Tags |
| block, htaccess, useragent |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Which countries would you block? | blacknight | Forum Management | 14 | 06-02-2009 06:55 PM |
| Google has block ads | faizanno1 | Search Engine Optimisation | 2 | 05-11-2008 08:04 PM |
| New blog on the block | Dotwebs | Blogs & Blogging | 6 | 08-10-2008 08:06 PM |
| Useragent in forum post | blacknight | Forum Management | 0 | 14-09-2008 01:51 AM |
| Feedburner UserAgent? | blacknight | Blogs & Blogging | 0 | 18-08-2008 12:55 AM |
| ||||
| | ![]() | |||
| | ||||