Error log: Session IP/browser/X_FORWARDED_FOR check failed

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
jmaraujo
Registered User
Posts: 240
Joined: Fri Jun 01, 2007 9:48 pm
Location: Rivera - Uruguay
Name: Juan

Error log: Session IP/browser/X_FORWARDED_FOR check failed

Post by jmaraujo » Thu May 08, 2008 5:02 am

The last couple weeks I'm getting lots of entries like this on my error log:
Session IP/browser/X_FORWARDED_FOR check failed
»User IP “190.134” checked against session IP “190.134”, user browser string “mozilla/5.0 (windows; u; windows nt 5.1; es-es; rv:1.8.1.14) gecko/20080404 firefox/2.0.0.14” checked against session browser string “mozilla/5.0 (windows; u; windows nt 5.1; es-es; rv:1.8.1.13) gecko/20080311 firefox/2.0.0.13” and user X_FORWARDED_FOR string “” checked against session X_FORWARDED_FOR string “”.
Can anyone tell me what could be causing this error and/or how can I fix it?

I'm running phpBB 3.0.1 (updated from 3.0.0, and 3.0.0 was a fresh install). And the server is running MySQL 5.0.51a and PHP Version 5.2.6.

Thanks in advance. :D

User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan
Contact:

Re: Error log: Session IP/browser/X_FORWARDED_FOR check failed

Post by Stitch625 » Wed May 21, 2008 2:47 am

I am having the same exact problem but I am still running 3.0. Just started happening. This error gets logged for each user, multiple times. I just cleared 181 pages of this error message.

User avatar
Phil
Former Team Member
Posts: 10403
Joined: Sat Nov 25, 2006 4:11 am
Name: Phil Crumm
Contact:

Re: Error log: Session IP/browser/X_FORWARDED_FOR check failed

Post by Phil » Wed May 21, 2008 2:53 am

It's because the user has upgraded their browser without their session being terminated. If they log out/log back in again it should stop happening. You could also consider truncating your sessions table to force this along.
Moving on, with the wind. | My Corner of the Web

mpolito1969
Registered User
Posts: 135
Joined: Mon Jul 14, 2008 1:43 pm
Name: Massimililano Polito

Re: Error log: Session IP/browser/X_FORWARDED_FOR check failed

Post by mpolito1969 » Tue Jun 16, 2009 3:10 pm

I have the same problem (phpBB 3.0.4), my error log is filled with

Code: Select all

Session IP/browser/X_FORWARDED_FOR check failed
»User IP “66.249.71” checked against session IP “93.36.125”, user browser string “mediapartners-google” checked against session browser string “mozilla/5.0 (macintosh; u; ppc mac os x mach-o; it; rv:1.8.1.20) gecko/20081217 firefox/2.0.0.20” and user X_FORWARDED_FOR string “” checked against session X_FORWARDED_FOR string “”.
It seems to me the problem is in the IP address. I asked everybody to log out and log in again, as suggested, but the log is still full. Obiously, I'm not sure all my users have logged out and in...

Can anybody better explain the meaning of
You could also consider truncating your sessions table to force this along
Which tables are involved, what should I do in PHPMyAdmin?

Ciao,
Max

User avatar
spaceace
Registered User
Posts: 1803
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: Error log: Session IP/browser/X_FORWARDED_FOR check fail

Post by spaceace » Fri Mar 05, 2010 12:52 am

mpolito1969 wrote:I have the same problem (phpBB 3.0.4), my error log is filled with

Code: Select all

Session IP/browser/X_FORWARDED_FOR check failed
»User IP “66.249.71” checked against session IP “93.36.125”, user browser string “mediapartners-google” checked against session browser string “mozilla/5.0 (macintosh; u; ppc mac os x mach-o; it; rv:1.8.1.20) gecko/20081217 firefox/2.0.0.20” and user X_FORWARDED_FOR string “” checked against session X_FORWARDED_FOR string “”.
It seems to me the problem is in the IP address. I asked everybody to log out and log in again, as suggested, but the log is still full. Obiously, I'm not sure all my users have logged out and in...

Can anybody better explain the meaning of
You could also consider truncating your sessions table to force this along
Which tables are involved, what should I do in PHPMyAdmin?

Ciao,
Max
i have this issue and it seems that my board is showing the same IP as this post “66.249.71”.

i'm running phpBB3.0.7 upgraded from 3.0.6.

i've truncated the sessions table, cleaned browser cache, logged out and back in forum and it shows this same thing for every single user that logs into my site.

Code: Select all

Session IP/browser/X_FORWARDED_FOR check failed
»User IP “66.249.71” checked against session IP “XXX.XXX.XXX”, user browser string “mediapartners-google” checked against session browser string “mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.9.2) gecko/20100115 firefox/3.6” and user X_FORWARDED_FOR string “” checked against session X_FORWARDED_FOR string “”.
i checked it using another browser and the only difference is the browser info

Code: Select all

Session IP/browser/X_FORWARDED_FOR check failed
»User IP “66.249.71” checked against session IP “XXX.XXX.XXX”, user browser string “mediapartners-google” checked against session browser string “mozilla/5.0 (windows; u; windows nt 5.1; en-us) applewebkit/531.21.8 (khtml, like gecko) version/4.0.4 safari/531.21.10” and user X_FORWARDED_FOR string “” checked against session X_FORWARDED_FOR string “”.

mpolito1969
Registered User
Posts: 135
Joined: Mon Jul 14, 2008 1:43 pm
Name: Massimililano Polito

Re: Error log: Session IP/browser/X_FORWARDED_FOR check fail

Post by mpolito1969 » Fri Mar 05, 2010 7:59 am

I "solved" it by going to ACP -> "Security settings" and setting to "no" "Validated X_FORWARDED_FOR header:" or setting to "none" "Session IP validation:". Or maybe both, I can't remember, anyway now I have them set to "no" and "none" and the log is cleaned.

Ciao,
Max

User avatar
spaceace
Registered User
Posts: 1803
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: Error log: Session IP/browser/X_FORWARDED_FOR check fail

Post by spaceace » Sat Mar 06, 2010 12:22 am

i finally tracked down the source of my problem. but it seems i'm going to just have to live with it :roll:

i have google ads on my site in a <div> class added to the overall_header. when i remove the ad code, the errors stop. tested this over a span of about 6 hours and had zero of these errors. as soon as i put the ad code back in and logged out and back in, the errors started again. also, i use no MODs for advertisement, just an added <div> with some css element properties to center the ad.

i have no idea if this is a phpBB related issue or if it's on google's end in the way they prevent self ad clicking.

edit: who-is on the full ip returns
IP whois for crawl-66-249-67-115.googlebot.com

OrgName: Google Inc.
OrgID: GOGL
Address: 1600 Amphitheatre Parkway
City: Mountain View
StateProv: CA
PostalCode: 94043
Country: US

NetRange: 66.249.64.0 - 66.249.95.255
CIDR: 66.249.64.0/19
NetName: GOOGLE
NetHandle: NET-66-249-64-0-1
Parent: NET-66-0-0-0-0
NetType: Direct Allocation
NameServer: NS1.GOOGLE.COM
NameServer: NS2.GOOGLE.COM
NameServer: NS3.GOOGLE.COM
NameServer: NS4.GOOGLE.COM

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: Bing [Bot] and 76 guests