Hey, I'm just trying to have a simple php download script (http://www.yourdomain.com/download.php?file=something.zip). The code I've come upon is working but you can link to it from other sites so that defeats its purpose... heres the code i got so far...
How can i restrict it to a certain domain? and is there anychance to do this: when a certain ip/username downloads somethign says its 200meg and the ip comes back on the SAME day to download another 200meg can the script say no ya cnt download you have allready used up ur 200meg download limit for today try again tomorrow
Question
trix
Hey, I'm just trying to have a simple php download script (http://www.yourdomain.com/download.php?file=something.zip). The code I've come upon is working but you can link to it from other sites so that defeats its purpose... heres the code i got so far...
How can i restrict it to a certain domain? and is there anychance to do this: when a certain ip/username downloads somethign says its 200meg and the ip comes back on the SAME day to download another 200meg can the script say no ya cnt download you have allready used up ur 200meg download limit for today try again tomorrow
Link to comment
https://www.neowin.net/forum/topic/114540-php-download-file-thingy/Share on other sites
3 answers to this question
Recommended Posts