Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

htaccess - disable hotlinking of images

0 votes
1 view
added Jul 19 in Server issues by LC Marshal Lieutenant (12,590 points)
#disable hotlinking of images with forbidden or custom image option

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?sparringmind.com [NC]

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?feeds2.feedburner.com/sparringmind [NC]

RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...