I sent the following email to the Perl Beginners List and was directed here ...
Hey all. On our website we have several forms (send a letter, ask a question, etc) that some of our visitors seem to have problems with. These forms require the referring page to be from a Grist Magazine domain. Here is some of the code: my $goback = param("goback") || ""; my $url = $goback || referer() || ""; if ($url !~ m{grist}) { &error("Must be called from a page on Grist Magazine."); } We have another script that outputs a printer friendly version of a HTML page. Some users are experiecing similar problems. if (!referer) { print h2 "Sorry, this script cannot be called directly."; print p "Please try again."; exit 0; } In both cases, our visitors swear that they are linking to these scripts from valid Grist pages. Any ideas why some people are getting the error messages? I've asked for browser and O/S info, but many are using the same setup we are using, which works just fine. Many thanks in advance! Chris P.S. We are recording referrers in our web logs. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>