Results 1 to 7 of 7
Thread: How to block access?
-
05-22-2001, 05:26 PM #1Junior Guru Wannabe
- Join Date
- Dec 2000
- Location
- Bergen, Norway
- Posts
- 67
How to block access?
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?
-
05-22-2001, 05:38 PM #2Web Hosting Master
- Join Date
- Aug 2000
- Posts
- 2,754
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.
-
05-22-2001, 06:05 PM #3Junior Guru Wannabe
- Join Date
- Dec 2000
- Location
- Bergen, Norway
- Posts
- 67
Not the best solution
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??
-
05-22-2001, 07:51 PM #4Junior Guru
- Join Date
- Jan 2001
- Location
- Netherlands
- Posts
- 236
Well, if you make the "hidden" directory outside the web structure, wouldn't that be an option?
-
05-22-2001, 08:14 PM #5New Member
- Join Date
- May 2001
- Location
- Columbus Ohio
- Posts
- 1
.htaccess
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.
-
05-22-2001, 11:02 PM #6Web Hosting Master
- Join Date
- May 2001
- Location
- Maui, HI
- Posts
- 1,239
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.ph...03-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 outAloha, Chad
www.happyfish.com
To do a move in such a way that no one suspects let alone detects !!!
-
05-23-2001, 11:44 AM #7WHT Addict
- Join Date
- Mar 2001
- Posts
- 136
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.