<div>Yes...I understand...</div>
<div>&nbsp;</div>
<div>I&#39;ll try this. </div>
<div>Thank you everyone!<br><br>&nbsp;</div>
<div><span class="gmail_quote">2008/6/16, mike &lt;<a href="mailto:mike503@gmail.com">mike503@gmail.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You&#39;re protecting your entire site right now.<br><br>You want something more specific like this:<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location ~* ^.+\.(jpg|jpeg|gif)$ {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valid_referers none blocked <a href="http://foo.com">foo.com</a>;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($invalid_referer) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 403;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>Right now you&#39;re protecting your entire location / :) You need to<br>specify what you want. Remember though that media files like wmv and<br>such that play using plugins don&#39;t send referrers typically, so the<br>
majority of your protection will be for images and other assets which<br>properly send a Referer header.<br><br>Then programs like Norton Internet Security (puke) have a setting to<br>block sending referrers, it might be turned on by default. That got me<br>
in the beginning, I had a lot of complaints... so that is why<br>&quot;blocked&quot; and &quot;none&quot; are good to be in there, due to all the variety<br>of browsers and &quot;privacy&quot; or &quot;security&quot; programs blocking HTTP<br>
referrer information because the designer thinks that&#39;s a neat<br>feature...<br><br><br><br>On 6/15/08, baalchina &lt;<a href="mailto:baalchina@gmail.com">baalchina@gmail.com</a>&gt; wrote:<br>&gt; Hello everyone, I have a problem with anti leech config<br>
&gt;<br>&gt; my config file, like this:<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valid_referers&nbsp;&nbsp; none&nbsp;&nbsp;blocked&nbsp;&nbsp;<a href="http://bbs.mysite.com">bbs.mysite.com</a> *.<a href="http://mysite.com">mysite.com</a>;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($invalid_referer) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return&nbsp;&nbsp; 403;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt;<br>&gt; It works good, but I have a problem. When I search my site in google, click<br>
&gt; the site url, the browser returns a 403 error. I must press refresh, then<br>&gt; the site shows.<br>&gt;<br>&gt; I think the problem is with anti leech config, so, how can I change the<br>&gt; setting? I just want to protect my images or mp3s.<br>
&gt;<br>&gt; Thanks very much~<br>&gt;<br>&gt;<br>&gt; --<br>&gt; from:baalchina<br><br></blockquote></div><br><br clear="all"><br>-- <br>from:baalchina