Hello,<br><br>Thanks. I tried that. But it's still not working. I am using wordpress. Don't know what referrer header wordpress send.<br><br>Max<br><br><div class="gmail_quote">On Mon, Apr 13, 2009 at 12:40 AM, Michael Shadle <span dir="ltr"><<a href="mailto:mike503@gmail.com" target="_blank">mike503@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Try<br>
<br>
"valid_referers none blocked *.<a href="http://etc.com" target="_blank">etc.com</a> etc"<br>
<br>
perhaps you're not sending a referrer header. Some "internet security<br>
suites" do that for "privacy" and I hate them. or malfunctioning<br>
browsers or some browsers include that option now.<br>
<br>
that's the only thing I see wrong there.<br>
<div><div></div><div><br>
On Sun, Apr 12, 2009 at 8:45 AM, Max <<a href="mailto:maxbear@gmail.com" target="_blank">maxbear@gmail.com</a>> wrote:<br>
> Hello all,<br>
><br>
> I tried to use the following code to prevent hotlinking. But it blockes<br>
> myself as well, anyone got any idea?<br>
><br>
> location ~* (\.jpg|\.png|\.css)$ {<br>
> valid_referers blocked <a href="http://domain.com" target="_blank">domain.com</a> *.<a href="http://domain.com" target="_blank">domain.com</a>;<br>
> if ($invalid_referer) {<br>
> return 404;<br>
> }<br>
> }<br>
><br>
> Thanks.<br>
><br>
> Max<br>
><br>
><br>
<br>
</div></div></blockquote></div><br>