Professional Web Applications Themes

check protocol - PERL Beginners

Hello, we have an affiliate system where affiliates put links on their websites, and we need to make sure they are using the https:// protocol when the customer clicks on the link, IE: [url]https://www.ourdomain.com/cgi-bin/script.cgi?somequery_stringhere[/url] is there an effective way to make sure, before the script process the request, that it can check that it was called via the https and not http protocal ?? TIA ;) -- Mike<mickalo>Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! [url]http://www.thunder-rain.com[/url] Quality Web Hosting [url]http://www.justlightening.net[/url] MSN: [email]mickalothunder-rain.com[/email] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=...

  1. #1

    Default check protocol

    Hello,

    we have an affiliate system where affiliates put links on their websites, and we
    need to make sure they are using the https:// protocol when the customer clicks
    on the link, IE:

    [url]https://www.ourdomain.com/cgi-bin/script.cgi?somequery_stringhere[/url]

    is there an effective way to make sure, before the script process the request,
    that it can check that it was called via the https and not http protocal ??

    TIA ;)

    --
    Mike<mickalo>Blezien
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Thunder Rain Internet Publishing
    Providing Internet Solutions that work!
    [url]http://www.thunder-rain.com[/url]
    Quality Web Hosting
    [url]http://www.justlightening.net[/url]
    MSN: [email]mickalothunder-rain.com[/email]
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    Mike Blezien Guest

  2. #2

    Default Re: check protocol


    > Hello,
    >
    > we have an affiliate system where affiliates put links on their
    websites, and we
    > need to make sure they are using the https:// protocol when the
    customer clicks
    > on the link, IE:
    >
    > [url]https://www.ourdomain.com/cgi-bin/script.cgi?somequery_stringhere[/url]
    >
    > is there an effective way to make sure, before the script process the
    request,
    > that it can check that it was called via the https and not http
    protocal ??
    >
    > TIA ;)
    >
    To me the easiest way to handle this would be to configure a distinct
    cgi-bin for the port (presumably 443) that the secure scripts run under.
    At that point if they can be run, they must be on a secure channel.
    Barring the ability to do that, you should be able to check the port
    that the request was made on based on the environment setup by the web
    server assuming it matches your secure port, then the request was made
    properly.

    I assume you are worried about the response information rather than the
    request, in the latter case there is little reason to check in a server
    side script whether the client has requested it over a secure channel,
    as the whole point of the security at that point is moot, I suppose in
    the latter case it would still make sense if you were pushing them
    secure information.

    [url]http://danconia.org[/url]
    Wiggins D Anconia Guest

  3. #3

    Default Re: check protocol

    Thx's

    after reading your post,... it then dawned on me the ever-handy CGI.pm has the
    server_port() function that will do what I need :)

    thx's again for the help,
    --
    Mike<mickalo>Blezien
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Thunder Rain Internet Publishing
    Providing Internet Solutions that work!
    [url]http://www.thunder-rain.com[/url]
    Quality Web Hosting
    [url]http://www.justlightening.net[/url]
    MSN: [email]mickalothunder-rain.com[/email]
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


    Wiggins d Anconia wrote:
    >
    >>Hello,
    >>
    >>we have an affiliate system where affiliates put links on their
    >
    > websites, and we
    >
    >>need to make sure they are using the https:// protocol when the
    >
    > customer clicks
    >
    >>on the link, IE:
    >>
    >>[url]https://www.ourdomain.com/cgi-bin/script.cgi?somequery_stringhere[/url]
    >>
    >>is there an effective way to make sure, before the script process the
    >
    > request,
    >
    >>that it can check that it was called via the https and not http
    >
    > protocal ??
    >
    >>TIA ;)
    >>
    >
    >
    > To me the easiest way to handle this would be to configure a distinct
    > cgi-bin for the port (presumably 443) that the secure scripts run under.
    > At that point if they can be run, they must be on a secure channel.
    > Barring the ability to do that, you should be able to check the port
    > that the request was made on based on the environment setup by the web
    > server assuming it matches your secure port, then the request was made
    > properly.
    >
    > I assume you are worried about the response information rather than the
    > request, in the latter case there is little reason to check in a server
    > side script whether the client has requested it over a secure channel,
    > as the whole point of the security at that point is moot, I suppose in
    > the latter case it would still make sense if you were pushing them
    > secure information.
    >
    > [url]http://danconia.org[/url]
    >
    >


    Mike Blezien Guest

Similar Threads

  1. RTMP Protocol
    By the dude881 in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: July 21st, 05:08 PM
  2. FileSystemObject protocol
    By Steve in forum ASP
    Replies: 1
    Last Post: September 11th, 02:55 AM
  3. Protocol Types
    By Ian Logan in forum Informix
    Replies: 3
    Last Post: August 1st, 09:13 AM
  4. what is ip protocol 47
    By Ankit Shah in forum Windows Networking
    Replies: 0
    Last Post: July 16th, 08:50 PM
  5. Deleted protocol
    By Tim in forum Windows Networking
    Replies: 1
    Last Post: July 8th, 02:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139