now i make simple system in my site and this its code
if(stc($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])){
//download directly
}else{
//open page first
}
function stc($haystack, $needle, $offset=0) {
return strpos(strtoupper($haystack), strtoupper($needle), $offset);
}
if any one enterd the link from my site its download directly ok and if from any other sites its open a page now its working great but if any one installed any downloader such as inernet download manager its make the link directly not going to page first i think because its make HTTP_REFERER null now how i can doing the system like rapidshare.com