SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot trigger8's Avatar
    Join Date
    Nov 2000
    Location
    Dallas, TX
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have some streaming audio files store in a directory where they are free to every people. However, there are several web sites that link directly from their web site to my audio content without my consent. I would like to block those IP's or domains from accessing my content.
    I have tried to install mod_access on my unix server, and I tried every usage from the documentation, it just wouldn't work. I have no idea what's wrong with it. Is there any other or better ways to perform the same job?

    Thanks!
    Trigger8

    **************************
    I killed a 6-pack just to watch it die!

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2000
    Location
    Warwickshire, England
    Posts
    557
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the sites only link to your content, it will be their visitors you need to block. So, what you could do is block by referer?

    in mod_rewrite

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} <URL of page accessing your domain>
    RewriteRule ^(.*)$ http://<same as above URL>

    btw, if you do want to ban from domain / ip
    <Limit GET>
    order allow,deny
    allow from all
    deny from bad.person.com
    </Limit>

  3. #3
    SitePoint Zealot trigger8's Avatar
    Join Date
    Nov 2000
    Location
    Dallas, TX
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do I need to enter all URL of page accessing my domain in mod_rewrite? What does this do? and is it different from <limit GET>?

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} <URL of page accessing your domain>
    RewriteRule ^(.*)$ http://<same as above URL>

    Thanks!
    Trigger8

    **************************
    I killed a 6-pack just to watch it die!

  4. #4
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use most programming languages for this - they all have enviromental variables you can use to grab the user's IP address - from there it's just a matter of checking the address against a list in a plain text file. Which languages do you have access to?

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2000
    Location
    Warwickshire, England
    Posts
    557
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This will ban the referer, NOT the client IP address.
    If you know the site that is linking to your content, you would use that URL.

  6. #6
    SitePoint Zealot Tiger_Tom's Avatar
    Join Date
    Feb 2000
    Location
    U.K.
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wouldn't a more inclusive method be to ban any accesses except from a page on YOUR OWN site. I don't know how to do it, but that would get rid of all the leeches i.e. you have a page which has 'click here for the lovely files', which links to the page/directory with the files you want to protect, and referalls from there are the only ones allowed.



Bookmarks

Posting Permissions

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