|
-
Aug 21st, 2002, 08:55 PM
#1
Thread Starter
Hyperactive Member
Hide my url
Hi,
how can I hide my download url so that nobody can go directly to my www.mysite.com/dloads/setup.exe?
ty
Multimedia Programmer
Uses VB.Net and MySQL
-
Aug 21st, 2002, 09:10 PM
#2
Fanatic Member
<?php
header("Location: setup.exe");
?>
Will redirect without anything being displayed, so users can not trace the file. Though they will have to filename.
-
Aug 22nd, 2002, 01:38 AM
#3
Thread Starter
Hyperactive Member
How can i do this using an html form that this happens when he hits the submit button?
Multimedia Programmer
Uses VB.Net and MySQL
-
Aug 22nd, 2002, 05:26 AM
#4
Conquistador
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
-
Aug 22nd, 2002, 08:07 AM
#5
Fanatic Member
or as a link
<a href="download.php?file=setup.exe">Download</a>
In Download.php:
<?php
header("Location: /download/$_REQUEST[file]");
?>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|