Security question on GBook

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
jack
Posts: 1
Joined: Sat Oct 24, 2009 7:25 am

Security question on GBook

Post by jack »

Great script - however I do have a question.
By typing in the address of your website and the directory GBook is in, then "entries.txt" it is possible to read the contents of this file. This file contains the email address, comments, etc. Is it possible to make it more secure?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Jack,

in the settings.php file you can change the filename in which the entries will be stored.

Code: Select all

/* Name of the file where guestbook entries will be stored */
$settings['logfile']='entries.txt';
As put in the readme.htm file which is contained in the package:
$settings['logfile']
Name of the file where posts will be stored. I strongly recommend that you rename this file from the default name entries.txt to some hard-to-guess name, for example g3isht39a.txt

And ofcourse you should disable listing directory contents on your server (if not done already).

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