Main Logo
News and Articles
  • Latest DVD News
  • Latest Blu-Ray News
  • Latest Columns
DVD Reviews
  • Latest DVD Reviews
  • Latest Blu-ray Reviews
  • Search for
Discussion Forums
  • All Forums
  • General
  • Television
  • DVDs & Films
  • Hardware
  • PCs & Mobiles
  • Photography
  • Music
  • Gaming and Consoles
  • MAD
  • Sports
  • Trading
  • Retailer Reviews
  • Bargain Buckets
  • Region Hacks
Your Account
  • Login
  • Create an Account
  • Lost Password
Region Hacks
  • Multi-Region Hacks
  • Hack Help Forum
Support This Site
  • Support This Site
  • About This Site
  • Contact Us
  • Advertise With Us
  • Advertising Policy
  • Privacy Policy

PCs & Mobiles Forum - Blocking specific domains using htaccess - Page 1

Google Plus One
Submit to Digg
Submit to Slashdot
Submit to StumbleUpon
Submit to Reddit
Tweet this Page
Share on Facebook

IMPORTANT - Click here to read the Forum Rules before you post!

Create New Thread
Blocking specific domains using htaccess
posted by sparkster on Thursday, 30th March 2006, 17:28

Elite

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
posted by xfg on Thursday, 30th March 2006, 18:07

Elite Donator

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
posted by sparkster on Thursday, 30th March 2006, 18:41

Elite

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 Grinning

----------------------------------
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
posted by xfg on Thursday, 30th March 2006, 19:04

Elite Donator

Quote:
it was on thier main page for some time


GrinningGrinningGrinning

lemonparty. Then report them for having porn on their profile.
--

www.soundalikes.com/

RE: Blocking specific domains using htaccess
posted by sparkster on Thursday, 30th March 2006, 19:10

Elite

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

<<< Return to threads
Choose a Page:
1

Some images and content © of their respective copyright holders, All Rights Reserved. All images and content © 1999-2012 Reviewer Ltd., All Rights Reserved. DVD Reviewer and its logo is a registered trademark of Reviewer Ltd.