Preventing others from slurping my photos

Not sure how to phrase what I am asking for…

It is my understanding that people can link to photos, illustrations, buttons, etc on your website and “slurp” them up for their own use.

Now I’m not talking about people simply stealing your websites widgets by doing a “Save As”, but more like stealing your bandwidth.

I tried looking this up online, but keep getting stuff dealing with copyright issues.

Am I making any sense?

You prevent that by using settings that only allow the image to be called from web pages on the same site. How you do it depends on what web server you are using.

If your site uses Apache then there is a form at http://www.htaccesstools.com/hotlink-protection/ that you can fill out that will generate the needed .htaccess commands for you.

1 Like

If you are using cpanel there is a “hotlink” protection setting. It probably just writes the .htaccess file for you.

Hotlinking was the word you were looking for.

2 Likes

@felgall, could you help me understand what the following code says…

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

About the only line I somewhat understand is line 3, which I believe says…

“If the Referrer is NOT a URI starting with “http” followed by an optional “s”, and “//:” and an optional “www.” and “yourdomain.com” then ______”

What does the line #2 do and say?

What does line #3 do? And what is [NC]?

What does line #4 do and say?

Thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.