Page 1 of Blocking specific domains using htaccess
PCs & Mobiles Forum
Blocking specific domains using htaccess
Bit of a long shot but would apprechiate any help,,,,
I am trying to block certain domains from hotlinking files on my website (http://www.sparkster.net). I don`t want to enable "Anti-Leech" in my control panel as it`ll stop genuine users with some privacy software from acessing my site. Therefore I need to block specified domains using .htaccess
The main domain I would like to block for now is MySpace.com - loads of people on their are stealing my images
I am using the code
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www\.)?myspace\.com/ [NC]
RewriteRule \.(jpe?g¦gif¦bmp¦png¦mp3¦swf¦wav¦wmv¦avi)$ - [F]
and placing it in the `.htaccess` file which I am placing in the /www folder. I have also tried placing it in the /www/images folder (it is the images I really want blocked). I have tried uploading both in Binary and ASCII and neither are working.
What am I doing wrong? My hosts Made2Own are stumped too! Many thanks in advance
My Website & Forums: http://www.sparkster.net
My DVD Collection: http://www.dvdprofiler.com/mc.asp?alias=sparkster&acceptadult=true
RE: Blocking specific domains using htaccess
Rename your images. Replace the hotlinked images with goatse. That`ll learn `em.
Edit: If you do this, please post the myspaz sites involved (if possible) so I can laugh.
--
www.soundalikes.com/
This item was edited on Thursday, 30th March 2006, 18:20
RE: Blocking specific domains using htaccess
Done that before, a while ago a Sheffield United website hotlinked to one of my images. I changed the image they were stealing to "LEEDS UNITED - THE PRIDE OF YORKSHIRE" - it was on thier main page for some time :D
My Website & Forums: http://www.sparkster.net
My DVD Collection: http://www.dvdprofiler.com/mc.asp?alias=sparkster&acceptadult=true
RE: Blocking specific domains using htaccess
Quote:
it was on thier main page for some time
:D:D:D
lemonparty. Then report them for having porn on their profile.
--
www.soundalikes.com/
RE: Blocking specific domains using htaccess
that`s a great idea! that`ll team them to steal my bandwidth
My Website & Forums: http://www.sparkster.net
My DVD Collection: http://www.dvdprofiler.com/mc.asp?alias=sparkster&acceptadult=true