Prevent Hot Linking with Java Sript...
|
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
![]() |
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. ![]() ![]() ![]() |