Page 1 of 1

Access Blocked

Posted: Sat May 08, 2010 12:55 am
by Redneckheaven
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I have tried just about everything to get guestbook to work on local machine. I am using Xampp to test guestbook and other pages. WHen I type localhost/gbook.php I keep getting ERROR: Invalid IP address, access blocked! Looked in Baned Ip address txt nothing there. Is there something I did wrong. Nothing shows up at all just the words above.

Thanks

Posted: Sat May 08, 2010 12:53 pm
by Henrie
This has nothing to do with the banned IP list.
This message is given when your IP returned by $_SERVER['REMOTE_ADDR']; does not match with how a IP address should be formatted.
This is probably caused by a wrong setting of $settings['allow_IPv6']=0; in the settings.php file.
Try changing it to 1 of you have 0 now, or the other way around.
Or maybe somehow when localhost is used it does not return a IP address (which would be strange). You could also try to use http://127.0.0.1/gbook.php and see if that works.

Greetings,
Henrie

Posted: Sun May 09, 2010 2:49 am
by Redneckheaven
Thank you Henrie. Thats what it was, was set to - 0 changed to -1 and everything worked just fine. Now just some fine tuning to the way I want it. Again Thanks for your help.

Posted: Sun May 09, 2010 7:31 am
by Henrie
Then you are one of the few people that use IPv6 already.
I see you are using localhost, so I think this is your test server for designing the webpages. When you move the website to your 'live' web server you should check if the setting $settings['allow_IPv6']=1; is still needed or that you need to change it back to 0.

Greetings,
Henrie

Posted: Sun May 09, 2010 9:00 pm
by Redneckheaven
Thank you, I think I will need to change it back. At one time before I started using xampp i was uploading to site then checking things and the GB worked fine. Maybe something to do with xampp Im not sure. Again Thanks for the help.