Accesso diretto via browser o url alle immagini o file bloccato from https://stackoverflow.com/questions/10236717/htaccess-how-to-prevent-a-file-from-direct-url-access
# htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]
#compreso di redirect
RewriteEngine on
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost [NC]
#RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.domain.com/no-hot-linking.jpg [R,L]