Amigos tengo un problema
quiero evitar el hotlink con htaccess estoy usando este codigo
Código:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://localhost$ [NC]
RewriteCond %{HTTP_REFERER} !^http://localhost/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.localhost$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.localhost/.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|png|bmp)$ http://sobrelanoticia.files.wordpress.com/2008/12/robar-para-tontos.jpg [R,NC,L]
lo guardo con la terminacion .htaccess y cuando intento accesar al direcotorio raiz (donde coloco ese htaccess) me tira este error:
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
¿Que estoy haciendo mal? muchas gracias.