Results 1 to 3 of 3

Thread: Hiding a URL link? Or secure a download??

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Question

    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!

  2. #2
    Addicted Member dmr's Avatar
    Join Date
    Jul 2000
    Location
    West-Germany :) Timezone: GMT +1 [DST] North.......: 52° 16’ 09” East...: 10° 31’ 16”
    Posts
    255
    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!

  3. #3
    Addicted Member dmr's Avatar
    Join Date
    Jul 2000
    Location
    West-Germany :) Timezone: GMT +1 [DST] North.......: 52° 16’ 09” East...: 10° 31’ 16”
    Posts
    255
    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
  •  



Click Here to Expand Forum to Full Width