Re: How to disable direct file linkage
- From: "nobull67@xxxxxxxxx" <nobull67@xxxxxxxxx>
- Date: 12 Apr 2007 09:57:28 -0700
On Apr 10, 11:34 am, b...@xxxxxxxxxxx wrote:
I have www pl page that is a survey. When users have have filled the survey the
click a link that takes them to a goodie program (a small exe).
The www page is for examplewww.blahblah.com/survey.pl
and the file iswww.blahblah.com/goodie.exe
Are you sure about those URLs? I get 404:
The requested URL /survey.pl was not found on this server.
Apache/1.3.33 Server at www.blahblah.com Port 80
Please refrain from using other people's domain names in your
examples. Use your domain or a reserved example domain (e.g.
example.com).
The problem is that users can go past the survey and type directly
www.blahblah.com/goodie.exe and get the program.
How would I prevent that?
This has nothing to do with Perl.
Fundamentally if file is directly accessible by a URL you can't stop
people sharing that URL with their friends.
You could make the GCI script actually emit the .exe file directly as
the GCI response but this solution messy. (I'd use File::Copy).
My preferred solution is for the CGI script to emit an _internal_
redirect and then configure the web server to disallow direct access
to the file.
How to configure this in your web server software depends very much on
what web server software you have.
.
- References:
- How to disable direct file linkage
- From: bob
- How to disable direct file linkage
- Prev by Date: need help testing email servers
- Next by Date: Re: How to set FTP module time out?
- Previous by thread: Re: How to disable direct file linkage
- Next by thread: Sorting dir output
- Index(es):
Relevant Pages
|