Results 1 to 7 of 7
  1. #1
    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?

  2. #2
    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.

  3. #3
    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??

  4. #4
    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?

  5. #5
    Join Date
    May 2001
    Location
    Columbus Ohio
    Posts
    1

    Cool .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.

  6. #6
    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 out
    Aloha, Chad
    www.happyfish.com
    To do a move in such a way that no one suspects let alone detects !!!

  7. #7
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •