Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hot Linking. How do I stop It ?

    I have installed on my server now ISAPI and it seems to do ok but not a complete shut down of hot links to my galleries but where I am really getting killed (in bandwidth) is hot links to my video content. I am a free referrel site. I went from 2Mbps per month to 10Mbps and needless to say is costing me a fortune. If there is nothing existing to stop the hot links can there be something written for me..Of course I am will to pay for it....

    Thanks for any and all input !

    Dan

  • #2
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    You can write a script which will handle all refering urls and then direct them. A friend of mine wrote a HTTP image handler for ASP.net because of loads of people hotlinking his stuff.

    However, although I'm a PHP guy rather than a ASP guy, I have no idea how to do it in PHP.

    btw, welcome to CF
    Jamie.

  • #3
    New to the CF scene
    Join Date
    May 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the Welcome ! I am not good at any programming format lol...my server can handle PHP I program all HTML and some java, but it is far easier to get a script that you know already works. So whatever will work on a windows 2003 server with php and MYSql would be a BIG help. I am getting eaten alive......

    Thanks again Jamie

    Dan
    NerosAngels.com

  • #4
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    I think there are some hot-linking protection scripts around, however you can do it with .htaccess I believe

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Yeah, you can use .htaccess, you can modify the code here to work for video files fairly easily: http://www.javascriptkit.com/howto/htaccess10.shtml
    OracleGuy

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by Neros
    So whatever will work on a windows 2003 server with php and MYSql would be a BIG help.

    .htaccess will only work if they are using Apache on that Windows2003 server instead of IIS.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    New to the CF scene
    Join Date
    May 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I do not have Apache I am using IIS

  • #8
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts

  • #9
    Regular Coder
    Join Date
    Mar 2005
    Posts
    248
    Thanks
    0
    Thanked 0 Times in 0 Posts
    10Mbps a month is that for all of your stuff? Becuase that is not big at all i can do that within a day easy. why don't you just pay for a host cpanel has hot link stuff on it. Am Not sure if you can use Cpanel on your own webserver?

    how can it cost you if you have your own webserver or is your ISP like a payasyou go thing? and its like £50 -$125??? for 1mb of bandwidth???????????
    (i have never seen a pay as you go one so i guess it costs alot )
    services

  • #10
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There's a fabulous ALA article on the subject:

    http://www.alistapart.com/articles/hotlinking/
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #11
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by Jalenack
    There's a fabulous ALA article on the subject:

    http://www.alistapart.com/articles/hotlinking/
    That method requires using a .htaccess file which requires that you use Apache. They are using IIS.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #12
    New to the CF scene
    Join Date
    May 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by weazel

    Thank you so much for the link. I installed this as well as customizing my 404 pages. Although I still get idiots hot linking I suppose this is the best I can hope for.
    As for the bandwidth, it is my server, but I have it hosted through a company that has 100Mbit lines and provides auto tape back up (daily) and auto battery back up for any power outages. So yes it costs me money for using their bandwidth.
    Money is not the issue. The issue is people stealling from me costing me more money and me not having the chance to sell the products from my sponsors, that is the issue........if I was rich and could afford to throw money away each month I would not complain. But I am in this to make money, not throw it away as I am sure you are also

    Thanks All !
    Dan


  •  

    Posting Permissions

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