Invalid URL when trying to access guestbook

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Robert58
Posts: 3
Joined: Thu Jan 17, 2019 10:53 am

Invalid URL when trying to access guestbook

Post by Robert58 »

Script URL: https://www.hartvanbali.nl/gastenboek/gbook.php
Version of script: 1.7 from 20th August 2009
Hosting company: one.com
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi,

At my website hartvanbali.nl the guestbook cannot be reached any more from Dutch IP addresses (other IP addresses no problem).
It used to work fine but somewhere in the past Dutch IP addresses are marked as 'ERROR: invalid IP address, access blocked'.
The file banned_ip.txt is empty.

Any idea what causes this error, an more importantly how I can solve this?

Thanks in advance for your reply, much appreciated.

Kind regards,
Robert58
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Invalid URL when trying to access guestbook

Post by Klemen »

This is strange. Please try this:

1. save this code as "test.php" and upload it to your server:

Code: Select all

<?php echo '<pre>' . print_r($_SERVER, true) . '</pre>';
2. open text.php from an IP address that shows that error in GBook

3. copy/paste the results you get here
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Robert58
Posts: 3
Joined: Thu Jan 17, 2019 10:53 am

Re: Invalid URL when trying to access guestbook

Post by Robert58 »

Hi Klemen,

When I copy/paste the output of the test.php here, after submit your system says 'the requested page could not be found"
Apparantly it doesn't accept the array that I tried to submit.

So I stored the output temporarily here:

https://www.hartvanbali.nl/outputoftest.html
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Invalid URL when trying to access guestbook

Post by Klemen »

I see the problem: you need to enable $settings['allow_IPv6'] in your settings (set to 1) or update you GBook to the latest version (recommended).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Robert58
Posts: 3
Joined: Thu Jan 17, 2019 10:53 am

Re: Invalid URL when trying to access guestbook

Post by Robert58 »

Hi Klemen,

Yes, now it works again!
Thank you very much for your help, much appreciated!
Post Reply