Evitar hotlinking con httaccess

Categories: Otros - Tags: ,

A veces ocurre que otros blogs roban la informacion que nosotros publicamos, incluso los graficos que subimos los jalan directamnte de nuestro servidor, aprovechándose de nuestros recursos y consumiendo nuestro ancho de banda, esto se llama hotlinking, para evitar esto lo mejor es usando un sencillo archivo httaccess:

1
2
3
4
5
6
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com/.*$ [NC]
RewriteRule .*\.(gif|jpg)$ http://www.domain.com/eatme.jpe [R,NC,L]
</ifModule>

Donde dice domain.com colocas el dominio real de tu página web

Leave a Reply

Your email address will not be published. Required fields are marked *

*


+ 5 = seven

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>