SPUG: Error message

Andre McDowall amcdowall at hotmail.com
Wed May 15 08:29:42 CDT 2002


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;

}

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org




More information about the spug-list mailing list