<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.nginx.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.nginx.org/index.php?title=Referrer_Spam_Blocking&amp;feed=atom&amp;action=history</id>
		<title>Referrer Spam Blocking - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.nginx.org/index.php?title=Referrer_Spam_Blocking&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Referrer_Spam_Blocking&amp;action=history"/>
		<updated>2013-06-19T15:23:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=Referrer_Spam_Blocking&amp;diff=860&amp;oldid=prev</id>
		<title>MichaelLustfield at 06:47, 23 November 2010</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=Referrer_Spam_Blocking&amp;diff=860&amp;oldid=prev"/>
				<updated>2010-11-23T06:47:17Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Referer spam is where someone will hit your site with the referer section of the browser request set to be a site they want to drive traffic to. The idea is to have links to those sites how up in any public stats pages you may have - which are common for blogs and forums.&lt;br /&gt;
&lt;br /&gt;
With NGINX you can use the valid_referers module to handle this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;nginx&amp;quot;&amp;gt;&lt;br /&gt;
location / {&lt;br /&gt;
  valid_referers none blocked *.badreferer1.com badreferer2.com *.badreferer3.com badreferer4.net;&lt;br /&gt;
 &lt;br /&gt;
  if ($invalid_referer) {&lt;br /&gt;
    return   403;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where you replace the badreferer domains with the referer domains that you wish to block.&lt;/div&gt;</summary>
		<author><name>MichaelLustfield</name></author>	</entry>

	</feed>