Prevent Image Hotlinking – IP Geeks

150 Riverside Pkwy Suite 206 Fredericksburg, VA 22406

Contact Email sales@ipgeeks.com
Phone Number 1.888.522.3177

150 Riverside Pkwy Suite 206 Fredericksburg, VA 22406

Prevent Image Hotlinking

  • 306

Add The Following code to a .htaccess file in your home folder.

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com(/)?.*$     [NC]
RewriteRule .*.(gif|jpg|jpeg|bmp)$ – [F,NC]

In the example above be sure to replace domain.com with your actual domain name.   This will stop other sites from hotlinking images that end in .gif, .jpg, .jpeg, and .bmp.

© 2018 IP Geeks | Web Hosting Support Providers