uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
AOL 5.0

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Aug-19-18 12:04 PM 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

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

or from a URL starting with just:

"http://" (such as

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 script... just in case.

STEP 2: Open your 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.

© 2003 Microburst Technologies, Inc.