[JaxPM] Error message

Andre McDowall amcdowall at hotmail.com
Wed May 15 08:11:25 CDT 2002


On the jacksonville-pm-list; Jax.PM'er "Andre McDowall" <amcdowall at hotmail.com> wrote -

Hi,

I am have a problem with an “email this page to a friend” script. Some users 
are able to access the email form just fine, while others receive an error 
message telling them they do not have access to the form. The .cgi script is 
set-up to allow all users to access the email form by clicking on a link 
from an HTML page. If a user tries to access the .cgi script directly, they 
are given an error message from within the .cgi script. However, the users 
that are currently having problems entering the email form are not trying to 
enter the .cgi script directly; the are accessing the script like everyone 
else (from an HTML page), yet they are being given the error message. Any 
idea why the script would let some people access the page and others not? 
Below, is the part of the .cgi script which gives the error message. Thanks!

if (!$ENV{'HTTP_REFERER'}) {

print "<html><head><title>Access denied</title></head>\n";
print "<body>\n";
print "You may not access this page.\n";
print "Your attempt has been logged.\n";
print "Your Ip address has been logged.\n\n";

print "\n";
print "\n\n";
print "</body></html>\n";

exit;

}

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


Jax.PM Moderator's Note:
This message was posted to the Jacksonville Perl Monger's Group listserv.
The group manager can be reached at -- owner-jacksonville-pm-list at pm.org
to whom send all praises, complaints, or comments...




More information about the Jacksonville-pm mailing list