Author |
Message |
topmug
Hangin' Around

Joined: Aug 11, 2005
Posts: 26
|
Posted:
Thu Aug 11, 2005 1:11 am |
|
Hi there, i installed Nuke Sentinel on my patched 3.1 7.4 nuke setup and several users are having problems when trying to post.
The error they get when they hit the post button is
Code: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.
|
Has any one got any idea how i can stop this.
Thanks in advance
Tom |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Thu Aug 11, 2005 10:10 am |
|
It's unlikely to be the browser, since many are having the same problem. Is your server behind a firewall (or running a software firewall)? If so, check what the message suggests. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
technocrat
Life Cycles Becoming CPU Cycles

Joined: Jul 07, 2005
Posts: 511
|
Posted:
Thu Aug 11, 2005 10:43 am |
|
Yeah its the one line in 3.1 that I thought was a bad idea.
In mainfile.php find:
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);
}
}
|
Delete it or comment it out /* */ |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! / Only registered users can see links on this board! Get registered or login! |
|
|
 |
topmug

|
Posted:
Thu Aug 11, 2005 11:09 am |
|
Thanks Mate, ill give it ago! |
|
|
|
 |
topmug

|
Posted:
Fri Aug 12, 2005 12:52 am |
|
Cheers mate, that worked a treat!
appreciated!
Tom  |
|
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Sun Aug 14, 2005 11:11 am |
|
I can tell you this, while it's not truely a NS issue, that many of the "Internet Security" products mask the http referer or entirely remove it. Norton's and McAfee are two that come to mind right off the bat.
Anyway, I will look at NS's main file to see if there is any reason it would trigger this piece of code in mainfile.php . |
_________________ Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! |
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Wed Dec 07, 2005 4:18 pm |
|
Thought I would just add a bit to this after having spent the last few days tracking down a related problem. I just upgraded from Nuke 7.4 to 7.6 with patched 3.1 and Sentinel 2.4.2. Have Gallery software installed and was getting a crazy message:
Went thru all sorts of searches and experiments looking at applet code and Gallery PHP code before I saw a reference to the referer blocking code in mainfile.php causing the problem.
So I commented out:
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);
}
} */
|
in mainfile and voila. Incidentally, as far as I can tell the referer blocks in Sentinel don't affect this. I turned them off for testing and the Gallery applet upload worked okay, but when I turned them back on it still worked okay. But if I uncomment the block in mainfile I get the problem right back.
Note to Gallery users, this also affects slideshows using the applet method. |
|
|
|
 |
|