|
-
Apr 8th, 2001, 02:20 PM
#1
Thread Starter
Frenzied Member
Is there a way I can hide the download link in my ASP page? WHat I mean is I sell a program and email when the order comes in. I want them to download it instantly after the purchase but do not want them to access the download link. Can I hide it? Or what do most other sites do to solve this problem?
Thanks!
-
Apr 8th, 2001, 02:47 PM
#2
Addicted Member
I don't know how to do this in ASP but in Perl.
In Perl there's the possibility to get the URL of the site, where the user came from. When he use the URL in the addressbar of the browser, it'll return an empty variable.
So you could access a script, which redirects him to the file. So the address is invisible and when you verify the referer, you'll see if it's okay or not.
In perl this variable is $ENV{'HTTP_REFERER'}
Hope this helps.
Dennis.
Code that I author is neither elegant nor efficient. It is, however, functional. Once I get something that works, I'm generally satisfied with myself - I mean, if it works, that's good enough, right?
Originally posted by aknisely
Sorry, but I feel uncomfortable on CC with clothes on
__________________
The truth ... is out there!
-
Apr 8th, 2001, 02:52 PM
#3
Addicted Member
in perl a sample would look like this...
#!/usr/local/bin/perl
if ($ENV{'HTTP_REFERER'} =~ "www.domain.com") {
print "Location: /uri to the files...\n\n";
}
else {
print "Content-Type: text/html\n\n";
print "Illegal function call...\n";
}
Code that I author is neither elegant nor efficient. It is, however, functional. Once I get something that works, I'm generally satisfied with myself - I mean, if it works, that's good enough, right?
Originally posted by aknisely
Sorry, but I feel uncomfortable on CC with clothes on
__________________
The truth ... is out there!
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
|