LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-14-2004, 04:11 PM   #1
Lionheart008
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
.htaccess


To protext my websites downloads, im using a .htaccess script to prevent hotlinking of my big media files using something like

Code:
RewriteCond %{HTTP_REFERER} !^URL/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^URL$      [NC]
RewriteRule .*\.(zip)$ MYURL [R,NC]
(the above is just an example.) The problem is, some people can told they are hotlinking when they are not, for some reason when some people have a firewall etc, the .htaccess file wont work and therefore they cannot download files. Can someone help with this?

Note: where i have put

URL and MYURL that really mean full website addresses, i just cannot post urls because i dont have 5 posts.
 
Old 10-15-2004, 03:15 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Because you are looking for a referer there and some people hide it you are likely to get problems. It may be a client that doesn't provide a referer or it could even be blocked by a proxy along the way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess Help GUIPenguin Linux - Security 6 02-22-2005 03:25 PM
.htaccess luca2005 Linux - Software 2 01-01-2005 08:38 PM
.htaccess kidestranged Linux - General 1 01-26-2004 11:18 AM
Htaccess DoobyWho Linux - General 4 04-28-2003 02:01 PM
.htaccess bretthoward Linux - Security 5 04-02-2001 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration