<html><body bgcolor="#FFFFFF"><div>Its not Wordpress sending the header it's your browser sending the header (unless this is wordpress fetching images using some plugin and then youll have to modify the script to send a referer header (I believe it is spelled wrong, technically)<br><br>On Apr 12, 2009, at 10:41 AM, Max &lt;<a href="mailto:maxbear@gmail.com">maxbear@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>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">&lt;<a href="mailto:mike503@gmail.com" target="_blank"><a href="mailto:mike503@gmail.com">mike503@gmail.com</a></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 &lt;<a href="mailto:maxbear@gmail.com" target="_blank"><a href="mailto:maxbear@gmail.com">maxbear@gmail.com</a></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>
> &nbsp;&nbsp;&nbsp; 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>
</div></blockquote></body></html>