Note: To protect the privacy of our members, e-mail addresses have been removed from the archived messages. As a result, some links may be broken.

Find Lesson Plans on! GettyGames

Re: [teacherartexchange] Stopping Hotlinking


Date: Thu Jul 13 2006 - 09:01:24 PDT

Thanks for the information! I'd seen something about this on my webhost's
info page but it sounded complicated. Your explanation makes sense. :-)

> Back from vacation and catching up with lots of digests.
> A few days ago there was a discussion about how to prevent the
> hotlinking of your images.. It is actually not that difficult to
> achieve if you have FTP access to your website.
> You want to create an .htaccess file. Open a blank page using notepad
> (PC) or textedit (Mac). Don't use a word-processing or web editor for
> this.
> Paste the following in:
> RewriteEngine on
> RewriteCond %{HTTP_REFERER} !^$
> RewriteCond %{HTTP_REFERER}
> !^http://([-a-z0-9]+\.)?yourdomainname\.com [NC]
> RewriteRule \.(gif|jpe?g|png)$ - [F,NC,L]
> Change the domain name on line three to your YOUR domain. Leave that
> slash in there, it's very important. This line allows you to link to
> your own images.
> Now, save the page as .htaccess (If you are using a Mac, you should
> leave the dot off the beginning and add it when you upload the page.
> Rename it on the web server, otherwise you won't be able to see the
> page once you've saved it because the Mac makes any page beginning with
> a period invisible).
> Upload this page in the root (main folder) of your website. If your
> site already has an .htaccess file, you can add this information to it.
> What this will do is simply prevent all your images from being
> hotlinked. You could also add a line to redirect to a different image
> but, since bandwidth theft is what you are trying to prevent, that's
> never made too much sense to me. There are a lot of good tutorials
> explaining this method online. Google: prevent hotlinking .htaccess
> OK, back to art-making. :-)
> -Eleanor Ramsay
> ---
> To unsubscribe go to


To unsubscribe go to