|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Hi
Im almost done with an install of WWWThreads php on a win2k box. The box is in my internal network with a name of webserv01
I keep receiving the error message of :
The host you are trying to send the input from is not a valid host.
I went to my config.inc.php and changed the config referrer line to :
$config['referer'] = "http://webserv01";
it still doesn't work ... any ideas
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
I just tried : $config['referer'] = "webserv01"; still unsuccessful
RussBuss
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
$config[referer] needs to be set to a fully qualified url. So this would need to be something like http://webserver01.yourdomain.com or something of that nature.
UBB.threads Developer
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
just tried the fully qualified URL
that didnt work ..
anything else you can think of
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
note- i access the root of the website by typing in
http://webserv01/
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
Well, whatever you see in your address bar when you are making a new post, you would use, minus the path part. Basically it is grabbing the referer environment variable and checking it against what you have it set to. Another way to find out for sure is to look in your referer log after clicking on the button to add the post as this will tell you the actual referer.
UBB.threads Developer
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Where is the referer log located??? im using IIS 5.0...
I also just tried :
$config['referer'] = "http://130.175.224.20";
and
$config['referer'] = "http://130.175.224.20/forums";
and Im still unsucessfully. Im pulling my hair out...
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
found the referer log here a snippet:
2001-02-13 09:16:20 130.175.225.236 - 130.175.224.20 80 GET /forums/newpost.php Cat=&Board=webbased&page=0&view=collapsed&sb=5 200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) 2001-02-13 09:16:23 130.175.225.236 - 130.175.224.20 80 POST /forums/addpost.php - 200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) 2001-02-13 09:16:23 130.175.225.236 - 130.175.224.20 80 GET /forums/stylesheets/stylesheet2.css - 304 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) 2001-02-13 09:16:27 130.175.225.236 - 130.175.224.20 80 GET /forums/wwwthreads.php Cat= 200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) 2001-02-13 09:16:28 130.175.225.236 - 130.175.224.20 80 GET /forums/admin/login.php Cat= 200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) 2001-02-13 09:16:31 130.175.225.236 - 130.175.224.20 80 GET /forums/wwwthreads.php Cat= 200 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0)
i also tried http://130.175.224.20:80 that didnt work either
RUSSBUSS
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
Ok, two things to try. First you can try setting the referer variable to http://130.175.224.20.
If that doesn't work then you can try this. Edit main.inc.php, about line 361 you will see a function called check_refer. In there is a small block that looks like this:
if (!$valid) { $this -> not_right("$lang[NOT_VALID]",$Cat); }
Change, that to this and it should show you the proper referer. It might give the extra path, but the only thing you will be worried about is the host itself.:
if (!$valid) { $refer = getenv('HTTP_REFERER'); $this -> not_right("Actual referer is: $refer:",$Cat); }
UBB.threads Developer
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
This what I had in my config.inc. php
// Domain that wwwthreads is running under. $config['referer'] = "http://130.175.224.20";
Then i changed the main.inc.php and this is the message i get now:
We encountered a problem. The reason reported was:
Actual referer is: :
Anything else you could think of ????
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
here is a more detailed log snippet:
http://130.175.224.20/forums/newpost.php?Cat=&Board=lotusnotes&page=0&view=collapsed&sb=5 2001-02-13 13:39:17 130.175.224.20 - W3SVC1 WEBSERV01 130.175.224.20 80 GET /forums/stylesheets/stylesheet2.css - 304 0 140 371 0 HTTP/1.1 130.175.224.20 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) - http://130.175.224.20/forums/addpost.php 2001-02-13 13:39:24 130.175.225.236 - W3SVC1 WEBSERV01 130.175.224.20 80 GET /forums/search.php Cat= 200 0 5426 523 120 HTTP/1.1 130.175.224.20 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) w3t_language=english;+w3t_myname=hriste;+w3t_mypass=.%24t5wEhzSgjuI;+w3t_visit=-palm%3D0--ntsoftware%3D0- http://130.175.224.20/forums/wwwthreads.php?Cat= 2001-02-13 13:39:25 130.175.225.236 - W3SVC1 WEBSERV01 130.175.224.20 80 GET /forums/wwwthreads.php Cat= 200 0 10354 523 100 HTTP/1.1 130.175.224.20 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+NT+5.0) w3t_language=english;+w3t_myname=hriste;+w3t_mypass=.%24t5wEhzSgjuI;+w3t_visit=-palm%3D0--ntsoftware%3D0- http://130.175.224.20/forums/search.php?Cat=
Im thinking is there some type of bug with WIN 2K and PHP4 where http_referer is not understood?? has anyone else experienced this problem.
RussBuss
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
I believe there was one other person here that had the same problem. They were not getting anything back from PHP concerning the HTTP_REFERER environment variable. I'm not sure what causes this, but in order to work around it you could comment out the check_refer call. In addpost.php about line 38, you will see this:
$html -> check_refer($Cat);
Just comment it out with a // before it.
UBB.threads Developer
|
|
|
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Hey IT WORKED
Thank you so much
RussBuss
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|