Back | Reverse | Quick Reply | Post Reply |

Prevent Hot Linking with Java Sript...
Link | by snail86 on 2006-05-19 01:15:15
Hi...
hot linking its really bad...
My website has down before a month. because some people use my link directly... i try som PHP code but it confuse me because my web hosting doesn't support it...
I got some idea... using Java Script to prevent Hot Linking... its safe or not...
and list me some code to prevent other people do direct linking to my site.


Re: Prevent Hot Linking with Java Sript...
Link | by gendou on 2006-05-19 10:53:46
the best way to prevent hotlinking is to require authentication using .htaccess
if this is no an option because of your hosting plan, you can hide the data behind a PHP script and use $_SERVER['HTTP_REFERER'] to check for hotlinkers. in addition, other measures can be taken in PHP like checking $_SESSION.

in order to help you further, tell me if you are able to modify .htaccess, and also, what media you are hosting.


Back | Reverse | Quick Reply | Post Reply |

Copyright 2000-2025 Gendou | Terms of Use | Page loaded in 0.0008 seconds at 2025-06-11 08:59:48