<?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"
	>
<channel>
	<title>Comments on: 9 backreferences, 1 Perl script, and 301 redirection</title>
	<atom:link href="http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script/feed" rel="self" type="application/rss+xml" />
	<link>http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script</link>
	<description>I'm pretty good at wasting your time.  By Tom Sherman.</description>
	<pubDate>Fri, 30 Jul 2010 04:11:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: SNVC</title>
		<link>http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script#comment-318719</link>
		<dc:creator>SNVC</dc:creator>
		<pubDate>Sun, 17 Aug 2008 16:21:56 +0000</pubDate>
		<guid isPermaLink="false">http://www445.pair.com/tps115/jotsheet/?p=475#comment-318719</guid>
		<description>This is definitely a good guide. Thanks for this.</description>
		<content:encoded><![CDATA[<p>This is definitely a good guide. Thanks for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vigram</title>
		<link>http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script#comment-318280</link>
		<dc:creator>vigram</dc:creator>
		<pubDate>Thu, 19 Jun 2008 09:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://www445.pair.com/tps115/jotsheet/?p=475#comment-318280</guid>
		<description>good article</description>
		<content:encoded><![CDATA[<p>good article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script#comment-3306</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 09 Aug 2006 07:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://www445.pair.com/tps115/jotsheet/?p=475#comment-3306</guid>
		<description>wow this is so cool.. finally I'll be able to fix my scripts.

Thanks a million
</description>
		<content:encoded><![CDATA[<p>wow this is so cool.. finally I&#8217;ll be able to fix my scripts.</p>
<p>Thanks a million</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom sherman</title>
		<link>http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script#comment-3305</link>
		<dc:creator>tom sherman</dc:creator>
		<pubDate>Sat, 27 May 2006 14:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www445.pair.com/tps115/jotsheet/?p=475#comment-3305</guid>
		<description>There are some edits you need to make to that, and you can simplify it.  Also, the way you wrote it, the RewriteCond's applied only to the &lt;em&gt;homepage&lt;/em&gt; of example.com, which I doubt you meant.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-]+\.)?example\.com [NC]
RewriteRule \.(jpg&#124;JPG)$ /path/to/perlscript.pl [T=application/x-httpd-cgi,L]

That will apply only to JPEGs.  you might want to make it:

RewriteRule \.(png&#124;PNG&#124;jpe?g&#124;JPE?G&#124;gif&#124;GIF)$ /path/to/perlscript.pl [T=application/x-httpd-cgi,L]</description>
		<content:encoded><![CDATA[<p>There are some edits you need to make to that, and you can simplify it.  Also, the way you wrote it, the RewriteCond&#8217;s applied only to the <em>homepage</em> of example.com, which I doubt you meant.</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9\-]+\.)?example\.com [NC]<br />
RewriteRule \.(jpg|JPG)$ /path/to/perlscript.pl [T=application/x-httpd-cgi,L]</p>
<p>That will apply only to JPEGs.  you might want to make it:</p>
<p>RewriteRule \.(png|PNG|jpe?g|JPE?G|gif|GIF)$ /path/to/perlscript.pl [T=application/x-httpd-cgi,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perlqu5</title>
		<link>http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script#comment-3304</link>
		<dc:creator>Perlqu5</dc:creator>
		<pubDate>Sat, 27 May 2006 13:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://www445.pair.com/tps115/jotsheet/?p=475#comment-3304</guid>
		<description>If I wanted to perform a redirect with htaccess to a perl script, how would I perform this, would an example like this suffice:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://.*example.com:80/*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*example.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://.*example.com*$ [NC]
RewriteRule .*\.(jpg&#124;JPG)$  /path/to/perlscript.pl [T=application/x-httpd-cgi,L]</description>
		<content:encoded><![CDATA[<p>If I wanted to perform a redirect with htaccess to a perl script, how would I perform this, would an example like this suffice:</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} !^http://.*example.com:80/*$ [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://.*example.com/.*$ [NC]<br />
RewriteCond %{HTTP_REFERER} !^http://.*example.com*$ [NC]<br />
RewriteRule .*\.(jpg|JPG)$  /path/to/perlscript.pl [T=application/x-httpd-cgi,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathia</title>
		<link>http://underscorebleach.net/jotsheet/2005/04/perl-301-redirect-script#comment-3303</link>
		<dc:creator>sathia</dc:creator>
		<pubDate>Fri, 21 Apr 2006 16:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://www445.pair.com/tps115/jotsheet/?p=475#comment-3303</guid>
		<description>good hint, i'm gonna try this</description>
		<content:encoded><![CDATA[<p>good hint, i&#8217;m gonna try this</p>
]]></content:encoded>
	</item>
</channel>
</rss>
