Jump to content


Photo

Download link without giveing it out


  • Please log in to reply
3 replies to this topic

#1 joecooper

joecooper
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 10 March 2006 - 12:25 AM

how can i let someone download somthing from my server, without them finding out the exact download link. it can be done via a php script, but no idea how to do this. any ideas?
Signature:
[/a]
[a href="http://www.planet-so...=1999&lngWId=8" target="_blank"]EzLogin 1.0[/a]
[a href="http://www.essexracers.com" target="_blank"]Essexracers.com[/a]
Msn Messenger: joe@joeyjoe.co.uk

#2 wickning1

wickning1
  • Members
  • PipPipPip
  • Advanced Member
  • 405 posts

Posted 10 March 2006 - 12:32 AM

A PHP script can be set up to feed the user a file download INSTEAD OF a web page. Set the content type with the header() function. Then use PHP to open the file on the local machine, read it in and output it to the user.

#3 joecooper

joecooper
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 10 March 2006 - 12:36 PM

oh i get it! thanks! i will try that later
Signature:
[/a]
[a href="http://www.planet-so...=1999&lngWId=8" target="_blank"]EzLogin 1.0[/a]
[a href="http://www.essexracers.com" target="_blank"]Essexracers.com[/a]
Msn Messenger: joe@joeyjoe.co.uk

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 10 March 2006 - 01:56 PM

[a href=\"http://www.onlamp.com/pub/a/php/2002/12/05/one_time_URLs.html\" target=\"_blank\"]http://www.onlamp.com/pub/a/php/2002/12/05..._time_URLs.html[/a]

When you want to give out a URL that only works for one download - no matter how many people know the URL
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users