ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

хотлинк защита


  • To: nginx-ru@xxxxxxxxx
  • Subject: хотлинк защита
  • From: "EDark" <nginx-forum@xxxxxxxx>
  • Date: Thu, 29 Sep 2011 16:23:26 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=e2ijI/v6pQ+gXW6inIM/WaFfsfl9z+kg+CeCuaKDcLU=; b=WHP1dJOVtvwr+eQ0vIOYrvfWsV5fR0w2OxgLqvUKvU0UyLeU1C1jtBP4KKbBGBTfFTh2cEAgJxVmyYfkL9sxMzB+NzIgHokb/Mu+q0KzEPpLSuicpbWbmK8V+u7ASCbZ;

делаю так

location ~*
^.+\.(svg|mp3|ogg|mpe?g|zip|gz|bz2?|rar|jpg|png|gif|jpeg|flv)$ {
root /path/to/site/;
valid_referers none blocked server_names ;
if ($invalid_referer) {
return 403;
}
}

nginx -V
nginx version: nginx/0.6.32
configure arguments: --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid
--lock-path=/var/lock/nginx.lock
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-proxy-temp-path=/var/lib/nginx/proxy
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug
--with-http_stub_status_module --with-http_flv_module
--with-http_ssl_module --with-http_dav_module

не работает, хоть ты тресни

бекэнд apache2

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,216071,216071#msg-216071

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.