Welcome! Log In Create A New Profile

Advanced

Como puedo combatir el Hotlink con NGINX

Posted by lt.iisidii 
Como puedo combatir el Hotlink con NGINX
September 12, 2012 11:44AM
Estoy tratando de elimitar el hotlink hacia mi sitio, ya estuve probando de pasar el .htaccess con winginx converter htaccess y no hubo caso.
El Htaccess seria el siguiente:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://misitio.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://misitio.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.misitio.net$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.misitio.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com/reader/view/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.google.com/reader/m/view/.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|png|bmp)$ http://misitio.net/hotlink.png [R,NC,L]
</IfModule>

Donde, misitio.net/hotlink.php es un codigo que se encarga de hacer algo asi: http://i.imgur.com/JALcG.png

O sea, reduce el tamaƱo de la imagen, lo pasa a escala de grises y agrega un cartel haciendo publicidad a mi sitio.
Como dije, en apache me funcionaba, en nginx no logre que funcione.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready