Andre McDowall on Wed, 15 May 2002 09:18:31 -0400 |
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 **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|