# Hotlink Protection doesn't work?

**URL:** <https://forums.interworx.com/t/hotlink-protection-doesnt-work/12741>\
**Category:** Bugs\
**Created:** [September 3, 2010, 4:19pm UTC](https://forums.interworx.com/t/hotlink-protection-doesnt-work/12741 "2010-09-03T16:19:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoccerGuy3](https://forums.interworx.com/user_avatar/forums.interworx.com/soccerguy3/32/56_2.png) [@SoccerGuy3](https://forums.interworx.com/u/SoccerGuy3)\
**Post date:** [September 3, 2010, 4:19pm UTC](https://forums.interworx.com/t/hotlink-protection-doesnt-work/12741/1 "2010-09-03T16:19:55Z")

</div>

Trying to implement hotlink protection on a domain that I suspect is having images “stolen”. Made the necessary entries in interworx, but hotlinking still works (tried from multiple browsers to make sure it wasn’t cached as well as online test sites).

From my .htaccess file (actual domain replaced):

```auto
# BEGIN IWORX hotlink
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com [NC]
RewriteCond %{HTTP_REFERER} !^$ [NC]
RewriteRule .*\.(jpg|jpeg|png|gif)$ - [F]
# END IWORX hotlink

```

Any ideas?

---

<div class="post-metadata">

**Author:** ![IWorx-Robert](https://forums.interworx.com/user_avatar/forums.interworx.com/iworx-robert/32/15_2.png) [@IWorx-Robert](https://forums.interworx.com/u/IWorx-Robert)\
**Post date:** [July 3, 2012, 6:03am UTC](https://forums.interworx.com/t/hotlink-protection-doesnt-work/12741/2 "2012-07-03T06:03:44Z")

</div>

Try this block:

```auto

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

```
