Click to See Complete Forum and Search --> : Hide my url
phutie
Aug 21st, 2002, 08:55 PM
Hi,
how can I hide my download url so that nobody can go directly to my www.mysite.com/dloads/setup.exe?
ty
Gimlin
Aug 21st, 2002, 09:10 PM
<?php
header("Location: setup.exe");
?>
Will redirect without anything being displayed, so users can not trace the file. Though they will have to filename.
phutie
Aug 22nd, 2002, 01:38 AM
How can i do this using an html form that this happens when he hits the submit button?
da_silvy
Aug 22nd, 2002, 05:26 AM
form action -> the file below with file name..
e.g.
<form action="download.php?file=setup.exe">
(or however it is)
<?php
header("Location: /download/$file");
?>
maybe...?
haven't tested it
Gimlin
Aug 22nd, 2002, 08:07 AM
or as a link
<a href="download.php?file=setup.exe">Download</a>
In Download.php:
<?php
header("Location: /download/$_REQUEST[file]");
?>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.