View Full Version : Hot Linking. How do I stop It ?

05-05-2005, 09:39 PM
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 !


05-06-2005, 01:10 AM
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 :)

05-06-2005, 01:48 AM
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


05-06-2005, 10:08 AM
I think there are some hot-linking protection scripts around, however you can do it with .htaccess I believe ;)

05-07-2005, 11:23 PM
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

05-15-2005, 06:44 PM
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.

05-16-2005, 03:23 AM
I do not have Apache :( I am using IIS

05-16-2005, 03:24 PM
You could try http://www.iis-resources.com/modules/mydownloads/viewcat.php?cid=12 ;)

05-17-2005, 01:33 PM
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 :thumbsup: )

05-18-2005, 10:09 PM
There's a fabulous ALA article on the subject:


05-19-2005, 12:34 AM
There's a fabulous ALA article on the subject:


That method requires using a .htaccess file which requires that you use Apache. They are using IIS.

05-25-2005, 04:43 AM
You could try http://www.iis-resources.com/modules/mydownloads/viewcat.php?cid=12 ;)

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 :o

Thanks All !
Dan :cool: