PDA

View Full Version : Redirecting leechers


CGAdam
7-28-04, 03:52 AM
Heya... I just recently put up an .htaccess to block leechers from taking pictures and what not... now, I want to redirect these links to an image that tells them that they have reached a restricted file.

I used the tutorials given by the resource center for my .htaccess file. Now, according to the tutorial, I have to put in the file I want to restrict:

RewriteCond %{REQUEST_URI} !^/restricted_image.jpg
RewriteRule +.(gif|jpg)$ http://www.yoursite.com/stopleeching.jpg

Is there any way I can restrict the entire site as opposed to just a single image?


Any help is greatly appreciated!

--Adam

CGAdam
7-28-04, 11:28 AM
It might in the long run... I host several video clips, and if a bunch of people decide to link em, it could very well use up a lot of my bandwidth.
Also, is there any way (maybe i can CHMOD the folder or something?) to prevent people from linking to a direct file? Instead of going to the site, they would just have a link to the file. So, any possible way to prevent this? I'd rather people look at the site than a direct file :p