How To Block Hotlinkers
linking of the specified file types occurs. A broken image is shown in case of the image.
To block traffic from a single referrer:
RewriteEngine on
#Options+Follow-Symlinks
RewriteCond%{HTTP_REFERER}badsite.com[NC]
RewriteRule.-[F]
To block traffic from multiple referrers:
RewriteEngine on
#Options+Follow-Symlinks
RewriteCond%{HTTP_REFERER}badsite.com[NC.OR]
RewriteCond%{HTTP_REFERER}anotherbadsite.com
RewriteRule.*-[F]
JavaScript can be used to prevent right-clicking an image when already in a browser. This is a very weak defense though as people just need to switch JavaScript off and/or use a decent browser and it’s all there. Using JavaScript to write images into a page does not offer sufficient protection as