# Problem with hotlinking

**URL:** <https://forum.kirupa.com/t/problem-with-hotlinking/108889>\
**Category:** Uncategorized\
**Created:** [April 29, 2004, 3:53pm UTC](https://forum.kirupa.com/t/problem-with-hotlinking/108889 "2004-04-29T15:53:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joso](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@joso](https://forum.kirupa.com/u/joso)\
**Post date:** [April 29, 2004, 3:53pm UTC](https://forum.kirupa.com/t/problem-with-hotlinking/108889/1 "2004-04-29T15:53:14Z")

</div>

Hi,

i’ve got a pretty big problem with people hotlinking to images on my server, i tried using the following in a .htaccess file :

RewriteEngine on  
RewriteCond %{HTTP\_REFERER} !^$  
RewriteCond %{HTTP\_REFERER} !^http://(www.)?[band-central.net/.\*$](http://band-central.net/.*%24) [NC]  
RewriteRule .(gif|jpg|jpeg|png)$ [http://www.band-central.net/bad.gif](http://www.band-central.net/bad.gif) [R,L]

but it doesn’t seem to work, i’ve got another domain registered with a different company which is [atreyu-online.net](http://atreyu-online.net) which links to [band-central.net](http://band-central.net). Could this be why it’s not working? do i have to add both domains to the .htaccess file, if so how do i do that? or is there a more secure way of doing this…

thanks :rock:
