A problem with

Roxis roxis at list.ru
Sun Jun 15 14:07:42 MSD 2008


On Sunday 15 June 2008, baalchina wrote:
> Hello everyone, I have a problem with anti leech config
>
> my config file, like this:
>
>
>         location / {
>                 valid_referers   none  blocked  bbs.mysite.com
> *.mysite.com; if ($invalid_referer) {
>                         return   403;
>                         }
>
>
> It works good, but I have a problem. When I search my site in google, click
> the site url, the browser returns a 403 error. I must press refresh, then
> the site shows.
>
> I think the problem is with anti leech config, so, how can I change the
> setting? I just want to protect my images or mp3s.
>
> Thanks very much~

create location for files you want to protect or
add google to valid_referers





More information about the nginx mailing list