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
The referring page did not meet security requirements

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-23-17 04:47 PM EST
Original Message
The referring page did not meet security requirements
Author tomphillipspcs on 03-23-2001 at 15:58 (EST)
I get the following message when logging into ushop.pl for the first time - any ideas why?

The referring page did not meet security requirements

Tom
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  Referring Page Does Not Meet Security Requirements Christine, 2001-03-23 16:39:20 (1)
  RE: The referring page did not meet security requirements Bill Weiner, 2001-03-23 18:06:51 (2)
            Sub Domain Names Preusser, 2001-08-16 08:16:11 (3)
                 RE: Sub Domain Names Bill Weiner, 2001-08-17 05:25:39 (4)

Messages In This Discussion
         1. Referring Page Does Not Meet Security Requirements
        Author Christine on 03-23-2001 at 16:39 (EST)
Usually this happens when the script_url parameter of your uShopOrderButton applet is not set to your secure URL.

For example, you might be specifying:

PARAM NAME="script_url" VALUE="http://mywebsite.com/cgi-bin/ushop.pl"

instead of your secure URL:

PARAM NAME="script_url" VALUE="https://www.mysecuresite.com/mywebsite/cgi-bin/ushop.pl"

See if that is where the problem is.
TABLE OF CONTENTS
         2. RE: The referring page did not meet security requirements
        Author Bill Weiner on 03-23-2001 at 18:06 (EST)
When logging in to the uShop Control Panel, make sure you try doing so from the URL that you specified in configuration question #4 of the ushop.pl script (the $secure_script_url setting).
TABLE OF CONTENTS
                 3. Sub Domain Names
                Author Preusser on 08-16-2001 at 08:16 (EST)
I have one main domain name and additional sub domain names which all will guide to my main domain.
When a customer comes to my online store via the main domain name, the order placement works correctly.
When a customer comes to my online store via a sub domain name, the message "The referring page ..." appears.
I think the reason is the same as already mentioned here - the URL given in the ushop.pl is my main domain name and so the CGI-script does not accept requests from the sub domain names.
Is there any possibility to solve this problem?

Best regards,

Rainer
TABLE OF CONTENTS
                         4. RE: Sub Domain Names
                        Author Bill Weiner on 08-17-2001 at 05:25 (EST)
There are two ways to resolve that problem and allow people to link to your uShop CGI script from different domains.

OPTION 1: The easiest option is to just turn "Page Validation" off (from the uShop Control Panel under GENERAL SETTINGS - MISCELLANEOUS). The only risk that gets introduced by turning Page Validation "OFF" is the chance that technically someone could save your store's HTML pages on their local computer, change the prices, and then submit the order from their local computer. For smaller stores, this is typically not an issue since the storeowner would recognize the price changes... but for larger stores with many items, it may be difficult for the storeowner to recognize if the prices of any items have been modified.


OPTION 2: The other option is to modify the uShop CGI script to all links from a specific list of URLS.... as per the instructions below:

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 referrer:

sub validate_referral_page

STEP 4: Locate the following two lines in that subroutine:

if ((!($referrer_string =~ /$expected_referrer/i)) XX
($referrer_string =~ /^file/i))

STEP 5: Replace those two lines with something like these 8 lines:

$domain2 = 'domain2.com';
$domain3 = 'domain3.com';
$domain4 = 'domain4.com';

if ((!($referrer_string =~ /$expected_referrer/i)) XX
(!($referrer_string =~ /$domain2/i)) XX
(!($referrer_string =~ /$domain3/i)) XX
(!($referrer_string =~ /$domain4/i)) XX
($referrer_string =~ /^file/i))

STEP 6: Save the file (as TEXT if your editor asks)... and try it out!

NOTE: Vertical bars (or pipe) characters do not show up correctly in this forum, so be sure to use vertical bars instead of the XX.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.