Page 1 of 1

ERROR: Invalid IP address, access blocked!

Posted: Sat Oct 20, 2012 8:28 pm
by the fool on the hill
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

Re: ERROR: Invalid IP address, access blocked!

Posted: Sun Oct 21, 2012 7:00 am
by Henrie
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

Re: ERROR: Invalid IP address, access blocked!

Posted: Sun Oct 21, 2012 2:32 pm
by the fool on the hill
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

Re: ERROR: Invalid IP address, access blocked!

Posted: Sun Oct 21, 2012 4:28 pm
by Henrie
Hi,

I had not even noticed the typing error of IVp6 :P

Great that you got it working now.

Greetings,
Henrie