hide url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
angelbear
Forum Newbie
Posts: 4
Joined: Thu Aug 22, 2002 2:41 am
Location: Philippines
Contact:

hide url

Post by angelbear »

Hello,

how can I hide my download url from the address bar, status bar and when visitors view my source code from their browser?

pls help, thanks.

angelbear
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

it is quite easy..

make a download.php file and in it put somthing like:

Code: Select all

if(IsSet($file))
{
header("Location: path/download/folder/$file");
}
and pass the download files in the link like:

Code: Select all

<a href='download.php?file=filename.ext'>download</a>

easy ain't it? :)
angelbear
Forum Newbie
Posts: 4
Joined: Thu Aug 22, 2002 2:41 am
Location: Philippines
Contact:

Post by angelbear »

thanks a lot! got it working :D
Post Reply