uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
AOL 5.0

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-22-17 05:46 AM EST
Original Message
AOL 5.0
Author Matt on 10-22-2002 at 11:39 (EST)
Got a quick question on the AOL 5 browser and compatibility issue.

The customer is using the AOL 5 browser. They get to the REVIEW CART page only to get an "illegal referrer page" error.

I've checked my Control Panel and it IS set to receive VALIDATION (YES).

This is the only instance I've had though of customers not being able to process their order!

Any known issues and what to do about it if not...?

Thanks again,
Matt Kachurak
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: AOL 5.0 Bill Weiner, 2002-10-23 06:52:55 (1)

Messages In This Discussion
         1. RE: AOL 5.0
        Author Bill Weiner on 10-23-2002 at 06:52 (EST)
One thing to check is if the customer was visiting your website via a URL starting with:

"http://www." (such as http://www.yourdomain.com)

or from a URL starting with just:

"http://" (such as http://yourdomain.com)

If the start of the URL does not match the URL that you have configured in configuration question #3 in the script (the $store_url setting) then an "Illegal Referrer Page" error could result.

If that is the problem, the steps below describe how to modify the "validate_referral_page" subroutine to allow URLs starting with or without the "www":

STEP 1: Make a backup of your current ushop-lib.pl script... just in case.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line in order to get to the start of the subroutine that validates the referring URL:

sub validate_referral_page

STEP 4: 4 lines down in that subroutine, directly AFTER the line:

$referrer_string = $ENV{'HTTP_REFERER'};

Add these two new lines:

$expected_referrer =~ s/www.//g;
$referrer_string =~ s/www.//g;

STEP 5: Save the script... as TEXT if your editor asks... and try it out!

That should do it.... as there aren't any known issues of AOL 5 browsers not relaying the referring URL.

If that does not resolve the problem, then worse comes to worse, you could just change the "Validate Referrer" check to NO. That is really just an extra check to make sure someone doesn't try duplicating your store's HTML pages, changing the prices, and then submitting an order. The probability of that happening is low.... and typically, the storeowner would notice if the product prices of an order look fishy.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.