Script URL:
Version of script: 1.7
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
ERROR: Invalid IP address, access blocked!
Write your message below:
Hi, I am trying to run the guestbook on localhost but get the error message. If I try to run on 127.0.0.1 I get a white page. If I change IVp6 I get a white page. local host is working and I have the files in the right place, var/www. Can anyone please help?
The fool
ERROR: Invalid IP address, access blocked!
-
- Posts: 6
- Joined: Sat Oct 20, 2012 8:09 pm
Re: ERROR: Invalid IP address, access blocked!
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.
If that does not work, please try the following:
Can you access a phpinfo.php file on that location? You can download the phpinfo.php file here http://www.phpjunkyard.com/extras/phpinfo.zip . Place phpinfo.php file in your gbook folder and enter the URL to that file in your browser.
Look at what value is returned at variable _SERVER["REMOTE_ADDR"]
If you are running on localhost your should get either get IP-adres 127.0.0.1 for IPv4 or in IPv6 ::1
Please let us know what you got.
Greetings,
Henrie
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.
If that does not work, please try the following:
Can you access a phpinfo.php file on that location? You can download the phpinfo.php file here http://www.phpjunkyard.com/extras/phpinfo.zip . Place phpinfo.php file in your gbook folder and enter the URL to that file in your browser.
Look at what value is returned at variable _SERVER["REMOTE_ADDR"]
If you are running on localhost your should get either get IP-adres 127.0.0.1 for IPv4 or in IPv6 ::1
Please let us know what you got.
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.
-
- Posts: 6
- Joined: Sat Oct 20, 2012 8:09 pm
Re: ERROR: Invalid IP address, access blocked!
Hi Henrie,
I had already changed IPv6 setings but in my message I called it IVp6!! (what a fool)
I looked again at my files and I had no permissions for the three folders; apptmp, badwords and templates.
I have changed permissions and now everything is working fine.
Thanks for your attention
I had already changed IPv6 setings but in my message I called it IVp6!! (what a fool)
I looked again at my files and I had no permissions for the three folders; apptmp, badwords and templates.
I have changed permissions and now everything is working fine.
Thanks for your attention
Re: ERROR: Invalid IP address, access blocked!
Hi,
I had not even noticed the typing error of IVp6
Great that you got it working now.
Greetings,
Henrie
I had not even noticed the typing error of IVp6

Great that you got it working now.
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.