<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ourlil.com &#187; httpd</title>
	<atom:link href="http://OurLil.com/blog/tag/httpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://OurLil.com</link>
	<description>A web site for tutti noi (all of us!)</description>
	<lastBuildDate>Fri, 27 Apr 2012 04:06:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to nuke attackers via httpd.conf?</title>
		<link>http://OurLil.com/blog/how-to-nuke-attackers-via-httpdconf/111/</link>
		<comments>http://OurLil.com/blog/how-to-nuke-attackers-via-httpdconf/111/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 17:34:37 +0000</pubDate>
		<dc:creator>webmaestro</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://clay.freedomblogging.com/how-to-nuke-attackers-via-httpdconf/</guid>
		<description><![CDATA[How to nuke attackers via httpd.conf?That can be accomplished using mod_access &#8220;Deny from &#60;envar&#62;&#8221; with mod_setenvif testing REQUEST_URI or by using mod_rewrite: RewriteRule (awstats\.plÂ¦xmlrpc\.phpÂ¦includer\.cgiÂ¦hints\.pl)$ - [F] Of course, the problem is that you&#8217;ll still be wasting bandwidth sending your custom 403 error page to these idiots.A work-around (stay with me here) is to do the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webmasterworld.com/forum92/5146.htm">How to nuke attackers via httpd.conf?</a><a href="http://www.webmasterworld.com/forum92/5146.htm"></a>That can be accomplished using mod_access &#8220;Deny from &lt;envar&gt;&#8221; with mod_setenvif testing REQUEST_URI or by using mod_rewrite:
<pre>RewriteRule (awstats\.plÂ¦xmlrpc\.phpÂ¦includer\.cgiÂ¦hints\.pl)$ - [F]</pre>
<p>Of course, the problem is that you&#8217;ll still be wasting bandwidth sending your custom 403 error page to these idiots.A work-around (stay with me here) is to do the following:Create a new subdirectory below web root.Place a custom 403 error page in that subdirectory. Lets call it &#8220;403.html&#8221; for now. Leave out all the HEAD content, and just put a few characters in this file, so you can recognize it by filesize when fetched &#8212; I use just the text &#8220;No.&#8221;Now create an .htaccess file in that subdirectory that contains the following:
<pre>ErrorDocument 403 /path_to_this_subdirectory/403.html</pre>
<pre>Options +FollowSymLinks</pre>
<pre>RewriteEngine onRewriteRule !^403\.html$ - [F]</pre>
<p>Now, instead of the first code snippet I posted above, use the following in httpd.conf or in your web root .htaccess file:
<pre>RewriteRule (awstats\.plÂ¦xmlrpc\.phpÂ¦includer\.cgiÂ¦hints\.pl)$ \</pre>
<pre>/path_to_subdirectory/$1 [L]</pre>
<p>Now when a bad-bot attempts to fetch one of those files, it gets rewritten to the subdirectory. But no files in that subdirectory are allowed to be fetched except for 403.html. So, the 403 error handler is invoked, and returns only a 403-Forbidden server response header and the three-byte response from 403.html, thus minimizing your bandwidth loss.</p>
]]></content:encoded>
			<wfw:commentRss>http://OurLil.com/blog/how-to-nuke-attackers-via-httpdconf/111/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

