|
|
|
|
|
|
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
![]() |
#1 |
If there is nobody out there, that's a lot of real estate going to waste!
Join Date: Dec 2003
Posts: 2,177
|
![]() Actually PHP can bypass hotlinking(If I remember right, from some TGP scripts)
PHP Code:
Also look at this code snippet from my thumbnailer routine: PHP Code:
|
![]() |
![]() |
![]() |
#2 |
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
|
Thanks for your answer
![]() ![]() I tried it with this image: http://www.shizzn.com/x/stuff/open/cimg3621.jpg - no hotlink protection http://www.shizzn.com/x/stuff/prot/cimg3621.jpg - htaccess hotlink protection I know tried it like that: Code:
$target_host = "www.shizzn.com"; $target_path = "/x/stuff/prot/cimg3621.jpg"; #header("Content-Type: text/plain"); header("Content-Type: image/jpeg"); $fp = fsockopen("$target_host", 80, $errno, $errstr, 5); if(!$fp){echo "$errstr ($errno)<br>\n";} else { $out = "GET ". $target_path ." HTTP/1.1\r\n"; $out .= "Host: ". $target_host ."\r\n"; $out .= "Referer: http://". $target_host ."\r\n"; $out .= "User-Agent: Blabla Browser Name(xyz)\r\n"; $out .= "Keep-Alive: 200\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { $status_request = fgets($fp, 500000); echo $status_request; $file = fopen("temp_img.jpg","w+"); fwrite($file,$status_request); fclose($file); } fclose($fp); } ![]() ![]() I just really s*ck! when it comes to file operations *lol If only a head request would also give info about the dimensions ![]() ![]()
__________________
Tonys XXX Links wants your quality free sites|king| Pleeeaaase help & save my addiction SaveEnterprise Last edited by guschi2k; 2007-12-20 at 01:50 PM.. |
![]() |
![]() |
![]() |
|
|