You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 31 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Has anyone seen this error before? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
php_n0ob
Nuke Soldier
Nuke Soldier


Joined: Nov 18, 2005
Posts: 13

Location: Mid-west US

PostPosted: Sun Nov 20, 2005 9:06 pm Reply with quoteBack to top

Quote:
Warning: your browser doesn't send the HTTP_REFERER header to the website.
This can be caused due to your browser, using a proxy server or your firewall.
Please change browser or turn off the use of a proxy
or turn off the 'Deny servers to trace web browsing' in your firewall
and you shouldn't have problems when sending a POST on this website.


The user gets this error when attempting to log-in to his account, and after attempting to "submit" a post on the forums.
Find all posts by php_n0obView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Mon Nov 21, 2005 12:51 am Reply with quoteBack to top

This is not an error. It is part of Chatserv's security patches to prevent access from those who have a blank referrer. If you want to allow these, and reduce the security of your site, then find in mainfile.php:
Code:
if ($_SERVER['REQUEST_METHOD'] == "POST") {
  if (isset($_SERVER['HTTP_REFERER'])) {
    if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
        die('Posting from another server not allowed!');
    }
  } else {
    die($posttags);
  }
}


and change to:
Code:
if ($_SERVER['REQUEST_METHOD'] == "POST") {
  if (isset($_SERVER['HTTP_REFERER'])) {
    if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
        die('Posting from another server not allowed!');
    }
  }
}

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
php_n0ob
Nuke Soldier
Nuke Soldier


Joined: Nov 18, 2005
Posts: 13

Location: Mid-west US

PostPosted: Mon Nov 21, 2005 6:06 am Reply with quoteBack to top

Cool, thanks for the post. I let the user know what was going on. Is there any kind of change users can make on their end to not have the blank referrer? From what I understand, spyware can inject new http referrers into a browser, thus causing you to have a false referrer that shows you linked from somewhere else.
Example:
62.22.98.xxx - - [28/May/2005:23:40:16 -0400] "GET /shninfo_detail.php?shnid=3869 HTTP/1.0" 200 12288 "http://free-online-poker.fre[x].net/" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Crazy Browser 1.x.x)"
Where the red item is the injected referrer. Can spyware also cause a blank referrer, OR would the blank referrer be caused by an anti-virus or spyware removal program? For now, in order to make sure this user, and any others that might be having similar issues can access the site, I will make the code change. It's a gaming site, and no real personal info is there, so I can live for a short while with the lowered security issue. If anyone knows how to address the referrer issue on the client end, please let me know.

Thanks.
Find all posts by php_n0obView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
php_n0ob
Nuke Soldier
Nuke Soldier


Joined: Nov 18, 2005
Posts: 13

Location: Mid-west US

PostPosted: Mon Nov 21, 2005 11:25 am Reply with quoteBack to top

Disregard that last post. The user in question just got back with me, ends up his Norton Internet Security software was the culprit. He set it to allow referrs from our domain, and now he can access it just fine. Thanks for the tip though, if I run into this again I now know that there is a fix, although not a safe one I would like. Shocked
Find all posts by php_n0obView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.576 Seconds - 36 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::