Hi,
how can I hide my download url so that nobody can go directly to my www.mysite.com/dloads/setup.exe?
ty
Printable View
Hi,
how can I hide my download url so that nobody can go directly to my www.mysite.com/dloads/setup.exe?
ty
<?php
header("Location: setup.exe");
?>
Will redirect without anything being displayed, so users can not trace the file. Though they will have to filename.
How can i do this using an html form that this happens when he hits the submit button?
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
or as a link
<a href="download.php?file=setup.exe">Download</a>
In Download.php:
<?php
header("Location: /download/$_REQUEST[file]");
?>