Access Blocked

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Redneckheaven
Posts: 9
Joined: Wed Nov 04, 2009 2:55 am

Access Blocked

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Redneckheaven
Posts: 9
Joined: Wed Nov 04, 2009 2:55 am

Post 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.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Redneckheaven
Posts: 9
Joined: Wed Nov 04, 2009 2:55 am

Post 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.
Post Reply