<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Blocking access based on referrer...?</title>
	<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer/</link>
	<description>Comments on Ask MetaFilter post Blocking access based on referrer...?</description>
	<pubDate>Sun, 03 Sep 2006 12:35:46 -0800</pubDate>
	<lastBuildDate>Sun, 03 Sep 2006 12:35:46 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Blocking access based on referrer...?</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer</link>	
		<description>Is it possible to restrict access to a web page (or whole site) based on the referrer? &lt;br /&gt;&lt;br /&gt; I noticed that a site I manage (which includes a phpbb forum) has been getting traffic off of the google search &quot;inurl posting.php?mode=newtopic&quot;. I&apos;m pretty sure this is one of the ways spammers and/or spambots are finding the forum.&lt;br&gt;
&lt;br&gt;
Specific to my problem, is there any way to restrict access to visits coming from that search? Through scripting? .htaccess? etc?&lt;br&gt;
&lt;br&gt;
And out of general interest, is there a way to block access based on referrers?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.45821</guid>
		<pubDate>Sun, 03 Sep 2006 12:16:44 -0800</pubDate>
		<dc:creator>poweredbybeard</dc:creator>
		
			<category>website</category>
		
			<category>referrer</category>
		
			<category>spam</category>
		
			<category>spambots</category>
		
			<category>phpbb</category>
		
	</item> <item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700271</link>	
		<description>.htaccess:&lt;br&gt;
&lt;br&gt;
RewriteEngine on&lt;br&gt;
# Options +FollowSymlinks&lt;br&gt;
RewriteCond %{HTTP_REFERER} inurl posting\.\?mode\=newtopic [NC]&lt;br&gt;
RewriteRule .* - [F]&lt;br&gt;
&lt;br&gt;
That will block anyone trying to access the site from a URL with the string you mention above.  I think.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700271</guid>
		<pubDate>Sun, 03 Sep 2006 12:35:46 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700272</link>	
		<description>Oh, remove the # sign if your website gives you &quot;500 Service&quot; errors.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700272</guid>
		<pubDate>Sun, 03 Sep 2006 12:37:05 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: poweredbybeard</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700274</link>	
		<description>Awesome, thanks - I&apos;ll try that out later.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700274</guid>
		<pubDate>Sun, 03 Sep 2006 12:39:59 -0800</pubDate>
		<dc:creator>poweredbybeard</dc:creator>
	</item><item>
		<title>By: reklaw</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700276</link>	
		<description>Note that you should only ever exclude certain referrers, not make a certain referrer a condition of entry. So it&apos;s fine to block &apos;posting.php?mode=newtopic&apos;, for example, but don&apos;t set it so that everyone coming there has to have a referrer from &apos;www.yoursite.com/[whatever]&apos;, as that will block legitimate traffic that has decided not to send you a referrer for some reason.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700276</guid>
		<pubDate>Sun, 03 Sep 2006 12:41:37 -0800</pubDate>
		<dc:creator>reklaw</dc:creator>
	</item><item>
		<title>By: winston</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700295</link>	
		<description>Spambots don&apos;t give (accurate) referer information.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700295</guid>
		<pubDate>Sun, 03 Sep 2006 13:12:56 -0800</pubDate>
		<dc:creator>winston</dc:creator>
	</item><item>
		<title>By: poweredbybeard</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700350</link>	
		<description>Winston - I kind of thought they might not, but I can&apos;t think of another reason for why anyone would search for that specific string. All it does is find you a bunch of phpbb boards, and I doubt if the one I admin is even in the first twenty results pages.&lt;br&gt;
&lt;br&gt;
But mostly it just made me want to learn if this was possible, and if so, learn how.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700350</guid>
		<pubDate>Sun, 03 Sep 2006 14:25:54 -0800</pubDate>
		<dc:creator>poweredbybeard</dc:creator>
	</item><item>
		<title>By: Steven C. Den Beste</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700451</link>	
		<description>Danger, Master Robinson: whenever you mess around with this, make damned sure to test it afterwards. Any mistake whatever will take your entire site down; .htaccess is &lt;em&gt;extremely&lt;/em&gt; unforgiving, and the syntax is arcane.&lt;br&gt;
&lt;br&gt;
Some syntax errors in the .htaccess file can result in every access to your site returning 503 errors, for instance.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700451</guid>
		<pubDate>Sun, 03 Sep 2006 18:10:54 -0800</pubDate>
		<dc:creator>Steven C. Den Beste</dc:creator>
	</item><item>
		<title>By: poweredbybeard</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#700901</link>	
		<description>Thanks, Steven. Duly noted. Still haven&apos;t had time to get my (virtual) hands dirty yet, but I&apos;ll certainly take care.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-700901</guid>
		<pubDate>Mon, 04 Sep 2006 12:19:24 -0800</pubDate>
		<dc:creator>poweredbybeard</dc:creator>
	</item><item>
		<title>By: Civil_Disobedient</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#701050</link>	
		<description>If you run into any problems, drop me an email.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-701050</guid>
		<pubDate>Mon, 04 Sep 2006 15:35:51 -0800</pubDate>
		<dc:creator>Civil_Disobedient</dc:creator>
	</item><item>
		<title>By: owen</title>
		<link>http://ask.metafilter.com/45821/Blocking-access-based-on-referrer#702664</link>	
		<description>Note that the referrer information can be easily spoofed, and shouldn&apos;t be relied on for real security. For example: &lt;a href=&quot;http://refspoof.mozdev.org/&quot;&gt;RefSpoof&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.45821-702664</guid>
		<pubDate>Wed, 06 Sep 2006 08:28:12 -0800</pubDate>
		<dc:creator>owen</dc:creator>
	</item>
	</channel>
</rss>
