<div>Yes...I understand...</div>
<div> </div>
<div>I'll try this. </div>
<div>Thank you everyone!<br><br> </div>
<div><span class="gmail_quote">2008/6/16, mike <<a href="mailto:mike503@gmail.com">mike503@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You're protecting your entire site right now.<br><br>You want something more specific like this:<br><br>
location ~* ^.+\.(jpg|jpeg|gif)$ {<br> valid_referers none blocked <a href="http://foo.com">foo.com</a>;<br> if ($invalid_referer) {<br> return 403;<br>
}<br> }<br><br>Right now you'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'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>"blocked" and "none" are good to be in there, due to all the variety<br>of browsers and "privacy" or "security" programs blocking HTTP<br>
referrer information because the designer thinks that's a neat<br>feature...<br><br><br><br>On 6/15/08, baalchina <<a href="mailto:baalchina@gmail.com">baalchina@gmail.com</a>> wrote:<br>> Hello everyone, I have a problem with anti leech config<br>
><br>> my config file, like this:<br>><br>><br>> location / {<br>> valid_referers none blocked <a href="http://bbs.mysite.com">bbs.mysite.com</a> *.<a href="http://mysite.com">mysite.com</a>;<br>
> if ($invalid_referer) {<br>> return 403;<br>> }<br>><br>><br>> It works good, but I have a problem. When I search my site in google, click<br>
> the site url, the browser returns a 403 error. I must press refresh, then<br>> the site shows.<br>><br>> I think the problem is with anti leech config, so, how can I change the<br>> setting? I just want to protect my images or mp3s.<br>
><br>> Thanks very much~<br>><br>><br>> --<br>> from:baalchina<br><br></blockquote></div><br><br clear="all"><br>-- <br>from:baalchina