Detecting hotlinking

Discussion in 'ASP General' started by Toni, Jan 28, 2010.

  1. Toni

    Toni Guest

    I have a strange problem detecting hotlinking using .htaccess with IIS.

    I check to see if the referrer linking to my images contains mydomain.com. So, if the
    referrer is mydomain.com/page.asp, I allow the connection.

    BUT - sometimes the referrer does not contain the domain name and is:
    /page.asp

    First of all, I didn't know that a referrer could NOT contain a domain name. Second, how
    is this done - is this a legit link to my image or is it a trick?
     
    Toni, Jan 28, 2010
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.