www.uburst.com www.uburst.com

"Illegal Referrer problem with domain!?!"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Illegal Referrer problem with domain!?!"
Posted by Matt on Jan-16-02 at 06:55 AM (EST)
OK... here's the deal:

I am hosted on a unix box that utilizes apache. The site is constructed with PHP & HTML utilizing a MySQL database for dynamic data with the UShop cart.

The ushop.pl, miscellaneous settings are set to YES for validating from the site with the referrer page.

The problem is as follows. I am successfully able to add items to my cart and get to the point of viewing the cart when beginning the order process, so I am able to see the display_cart.html page.

The problem begins when I click continue on the display_cart.html page. It begins the execution of the ushop script, but then I get the illegal referrer page. Here's why: All the settings for the ushop.pl point to the domain (ie: http://www.whatever.com/cgi-bin) but I still get this error?

The hosting is setup like this. 3 domains, one primary and 2 subdomains:

--domain 1 (IP Address is the same for all 3)
|
|--domain 2
|--cgi-bin
|--domain 3

So, what happens is this: you enter the domain as http://www.whatever.com

you add items, you start the order process
the browser shows:

http://www.whatever.com/cgi-bin/display_cart.html

then click continue and get the illegal referrer page. The browser shows the link as follows:

http://whatever.com/cgi-bin/ushop.pl

See the problem? Before mentioning this, I want you to know that I CURRENTLY have the ushop.pl script set as http://www.whatever.com/cgi-bin

I've also tried by IP address, and just http://whatever.com/cgi-bin AND https://secure14.prohosting.com/~a0015590/whatever.com/cgi-bin

No success... I still end up with the same issue? Is there something that can be done or am I just stuck? If tried NS 4.78, 4.79, 6, IE 5.0, 5.5 and 6. Still get the same issue!

HELP!

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

I got it.... , Matt, Jan-16-02, (1)
RE: I got it...., Joseph Pishgar, Jan-16-02, (2)
"Illegal Referrer problem with..., Reuben Cowell, Mar-31-02, (3)
RE: Illegal Referrer problem with d..., Bill Weiner, Apr-01-02, (4)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "I got it.... "
Posted by Matt on Jan-16-02 at 07:04 AM (EST)
I got it.... there was one link in one html page referring to incorrect URL...

Sorry

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: I got it...."
Posted by Joseph Pishgar on Jan-16-02 at 01:35 PM (EST)
Hello Matt,

Great to hear! 99% of the time, an Illegal Referrer error is caused by a path or a URL being wrong somewhere. Glad you could catch it!

If you hit any more snags, let us know.

Regards,
Joseph Pishgar
Microburst Technologies, Inc.
www.uburst.com

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . ""Illegal Referrer problem with domain!?!""
Posted by Reuben Cowell on Mar-31-02 at 11:35 AM (EST)
$referrer_string =~ s/www.//g;
$expected_referrer =~ s/www.//g;

Add this code to subrouting "validate_referral_page" under $referrer_string = $ENV{'HTTP_REFERER'}; in the ushop-lib.pl. If a user types http://whatever.com/ you should get an Illegal Referer.

For a second domain
$referrer_string =~ s/new-what-ever-domain/whatever/g;

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "RE: Illegal Referrer problem with domain!?!"
Posted by Bill Weiner on Apr-01-02 at 06:44 AM (EST)
Yes, good tip. That would allow posts from domains accessed with the "www" or not, such as:

http://www.yourdomain.com
http://yourdomain.com

Good tip.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.