risul
05-22-2001, 05:26 PM
Hello guys,
I have a site with lots of downloads. My problem is that other people are linking directly to my files.
Is there any way I can configure my Raq3 to only respond to two of my other domains?
-Edward-
05-22-2001, 05:38 PM
The best way would be to install a cgi script that deals with downloads each download will have a different URL.
Put the download in a hidden directory what only the script can find using the filepath should make things pretty secure.
risul
05-22-2001, 06:05 PM
Thank you for your suggestion, but I don't think this is the best solution because there are also scripts that find out the actual directory of a "hidden" file behind an anti-leach script!
I know this because I'm already using a script to hide my files!
I know for sure that there is a method in Apache configuration where you can block access to a certain directory from other domains. I think you can also "grant" some domains access while all other domains cannot access a directory!
Can any Apache guru help here??
Pingu
05-22-2001, 07:51 PM
Well, if you make the "hidden" directory outside the web structure, wouldn't that be an option?
TRobison
05-22-2001, 08:14 PM
I belive that this can be done with the .htaccess file on your server, you will have to look up the documentation on this. A good place to start would be here:
blizzardunderground.com/tutorialhtaccess.shtml
It has some content about anti-leeching.
I to have heard of this with htaccess
using your IP I believe you will need a static IP to do this
try something like this ?
<Location /status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from .yourdomain.com
</Location>
try the tutorial here
http://apachetoday.com/news_story.php3?ltsn=2000-11-13-003-01-SC-LF-SW
there was also a way you can do this then give a pop up that says the site you are trying to dl form is illegally linking to my material blah blah
hope this helps
I was going to do this with image files that I have at some point.
keep us posted if ya can I am curious what ya find out
jnestor
05-23-2001, 11:44 AM
You can do this with mod_rewrite.
Check out http://httpd.apache.org/docs/misc/rewriteguide.html
near the bottom is a section called Blocked Inline-Images that should give you a good start.
The docs are at: http://httpd.apache.org/docs/mod/mod_rewrite.html
mod_rewrite can get rather complicated and these docs aren't the most user friendly I've seen.