httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] URL Problem
Date Fri, 21 Feb 2003 09:58:11 GMT
>-----Original Message-----
>From: Kuldeep Singh []
>We have implemented a custom userid/password mechanism wherein we ask
>the user and password on the first page and then we show him the menu
>what depending on his userid privileges. But he can execute my cgi-bin
>programs directly by typing the following in the url address box
> . How do I make him comeback to the
>first page even if he enters the above url as the programs in the
>cgi-bin folder are meant to be executed through the forms and not

One way to do it might be to check the Referer header in the CGI and
check that it matches the URL of the form, e.g. (assuming Perl)

$ENV{'HTTP_REFERER'} =~ /$some_string_in_form_URL/ or

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

>This message (including any attachments) contains 
>confidential information intended for a specific 
>individual and purpose, and is protected by law. 
>If you are not the intended recipient, you should 
>delete this message and are hereby notified that 
>any disclosure, copying, or distribution of this
>message, or the taking of any action based on it, 
>is strictly prohibited.
>Visit us at
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message