<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Block Java user-agents</title>
	<atom:link href="http://www.tacticaltechnique.com/how-to/block-java-user-agents/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tacticaltechnique.com/how-to/block-java-user-agents/</link>
	<description>Web Development Observations and Asides by Corey Salzano</description>
	<lastBuildDate>Mon, 30 Aug 2010 07:07:34 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Fighting Bots Via Their Bad Requests - PlanetMike's Technology Journal</title>
		<link>http://www.tacticaltechnique.com/how-to/block-java-user-agents/comment-page-1/#comment-4925</link>
		<dc:creator>Fighting Bots Via Their Bad Requests - PlanetMike's Technology Journal</dc:creator>
		<pubDate>Sun, 07 Jun 2009 13:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=224#comment-4925</guid>
		<description>[...] access my web site? I&#8217;ve also decided to block access to my web site by Java user agents. See How To Block Java User-Agents for someone else&#8217;s similar approach to the Java [...]</description>
		<content:encoded><![CDATA[<p>[...] access my web site? I&#8217;ve also decided to block access to my web site by Java user agents. See How To Block Java User-Agents for someone else&#8217;s similar approach to the Java [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey</title>
		<link>http://www.tacticaltechnique.com/how-to/block-java-user-agents/comment-page-1/#comment-2643</link>
		<dc:creator>Corey</dc:creator>
		<pubDate>Thu, 26 Feb 2009 04:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=224#comment-2643</guid>
		<description>Yuri, rewrite rules can be implemented to block IP address ranges:

&lt;code&gt;RewriteCond %{REMOTE_ADDR} 213\.93\.196\.\d\d?\d?
RewriteCond %{HTTP_USER_AGENT} Java.*
RewriteRule ^/(.*)$ /$1 [F]&lt;/code&gt;

\d represents a single digit in regular expressions, and a question mark ? makes that character optional</description>
		<content:encoded><![CDATA[<p>Yuri, rewrite rules can be implemented to block IP address ranges:</p>
<p><code>RewriteCond %{REMOTE_ADDR} 213\.93\.196\.\d\d?\d?<br />
RewriteCond %{HTTP_USER_AGENT} Java.*<br />
RewriteRule ^/(.*)$ /$1 [F]</code></p>
<p>\d represents a single digit in regular expressions, and a question mark ? makes that character optional</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuri</title>
		<link>http://www.tacticaltechnique.com/how-to/block-java-user-agents/comment-page-1/#comment-2621</link>
		<dc:creator>Yuri</dc:creator>
		<pubDate>Tue, 24 Feb 2009 13:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tacticaltechnique.com/?p=224#comment-2621</guid>
		<description>Thanks for Java-bot explanations. Recently I too have found such and other robots on a site.
  Many robots steal contents of pages of a site, so the decision to block them is correct.

  But I do it a little in another way, because
 the Rewrite Enginerules rules is not convenient for blocking of ranges of IP-addresses, therefore it does a script on PHP, likely:
$block= array(
  &quot;84.120.0.0-84.123.255.255&quot;,
  &quot;122.198.0.0-122.198.255.255&quot;,
  &quot;205.209.128.0-205.209.191.255&quot;
   );
function checkIP($ip) {
 for ($i=0; $i= $b_IP &amp;&amp; $IP &lt;= $e_IP) return true;
  }
 return false;
 }

   &quot;Manually&quot; blocking IP and UserAgent is not the best practice, so I use robots detection by pseudo-picture loading and JavaScrips evaluating. But Java-bots loaded all pseudo-pictures and evaluate JavaScrips!
  One way to detect Java-bots - by UserAgent&#039;s field, but it is not so difficult тo change this fieled.
What to do in this case?</description>
		<content:encoded><![CDATA[<p>Thanks for Java-bot explanations. Recently I too have found such and other robots on a site.<br />
  Many robots steal contents of pages of a site, so the decision to block them is correct.</p>
<p>  But I do it a little in another way, because<br />
 the Rewrite Enginerules rules is not convenient for blocking of ranges of IP-addresses, therefore it does a script on PHP, likely:<br />
$block= array(<br />
  &#8220;84.120.0.0-84.123.255.255&#8243;,<br />
  &#8220;122.198.0.0-122.198.255.255&#8243;,<br />
  &#8220;205.209.128.0-205.209.191.255&#8243;<br />
   );<br />
function checkIP($ip) {<br />
 for ($i=0; $i= $b_IP &amp;&amp; $IP &lt;= $e_IP) return true;<br />
  }<br />
 return false;<br />
 }</p>
<p>   &#8220;Manually&#8221; blocking IP and UserAgent is not the best practice, so I use robots detection by pseudo-picture loading and JavaScrips evaluating. But Java-bots loaded all pseudo-pictures and evaluate JavaScrips!<br />
  One way to detect Java-bots &#8211; by UserAgent&#8217;s field, but it is not so difficult тo change this fieled.<br />
What to do in this case?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
