Jump to content

Hide original downloads link through php


netlovers

Recommended Posts

I want to hide original download link in php
suppose i have 2 files with the following links
http://www.domain.com/file1.zip
and
http://www.domain.com/file2.zip
now i donot want to show these real link to users i want to create a file download.php
when this file calls like this
www.mydomain.com/download.php?id=1 it gives download of  file1.zip whose link mentioned above
and when download.php calls like this
www.mydomain.com/download.php?id=2 it gives download of  file2.zip whose link mentioned above
and so on
So plz help in this matter and tell me which function of php do i need to use in creating this do i need to use mysql.
Link to comment
Share on other sites

[quote author=AndyB link=topic=104749.msg417996#msg417996 date=1155911489]
Using one-time URLs is about as bullet-proof as necessary for this:

http://www.onlamp.com/pub/a/php/2002/12/05/one_time_URLs.html
[/quote]

That should solve your problem perfectly.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.