Prevent hotlinking
Max
maxbear at gmail.com
Sun Apr 12 19:45:01 MSD 2009
Hello all,
I tried to use the following code to prevent hotlinking. But it blockes
myself as well, anyone got any idea?
location ~* (\.jpg|\.png|\.css)$ {
valid_referers blocked domain.com *.domain.com;
if ($invalid_referer) {
return 404;
}
}
Thanks.
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090412/c52a9174/attachment.html>
More information about the nginx
mailing list