SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    0 Post(s)
    0 Thread(s)

    block links from 'pirate' sites ??

    Greetings -

    Is it possible to block links to .mp3 files (music I've written & created)
    from 'pirate' sites and, if so, how?

    (Or if someone could point me towards appropriate references / search terms --
    my Google search results are not helpful.)

    Here's a cPanel AWStats excerpt of sites / links I'd like to block:
    Connect to site from
    Links from an external page


    - Richard
    Last edited by Mittineague; Nov 21, 2010 at 21:37. Reason: removing unnecessary links
    - Richard

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    West Springfield, Massachusetts
    194 Post(s)
    2 Thread(s)
    The term you are looking for is "hot-linking".

    I guess the most common way might be to use Apache htaccess to restrict outside sites. But IMHO this has some limitations.

    I think a better way (but a bit more involved) is to keep the files outside of the root folder and have the pages on your site set a SESSION. Instead of calling the files directly, call a file that checks for a valid SESSION and fetches the file if it's OK.


Posting Permissions

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