Anyone Can View Your Guests' Email Addy's?

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
peaceonearth
Posts: 2
Joined: Wed Dec 29, 2010 6:03 pm

Anyone Can View Your Guests' Email Addy's?

Post by peaceonearth »

Script URL: N/A
Version of script: 1.7
Hosting company: Host Gator
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Many

Write your message below:

I hope this is not a flaw, but if it is .. I hope we can get it resolved. After running some tests, I see that Entropy Search (from CGI in CPanel) will list the domain/guestbook/datalife.txt in it's search results. Meaning - everyone and anyone in the world can simply visit http://www.domain.com/guestbook/datalife.txt and view the entire file. Is this fixable?

Thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Anyone Can View Your Guests' Email Addy's?

Post by Klemen »

You should name your "entires.txt" to "SomeSpecialNameNoOneCanGuess.txt".

By giving the entires file a unique and hard to guess name (like "8Wi-t_0gE68_OZ_al7m-U.txt") youc an rest assured no one will be able to find the name and type it in the browser to view the data inside.

Your entropy search is probably indexing files/folders locally and so it can access any file on the server, but a good search script should give you a way to exclude files from being indexed (just make sure you don't put the hidden name to the robots.txt file as anyone can view that).
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
peaceonearth
Posts: 2
Joined: Wed Dec 29, 2010 6:03 pm

Re: Anyone Can View Your Guests' Email Addy's?

Post by peaceonearth »

Hi there,
Well I don't see an 'entries' file but I do have that datalife.txt file. I tried to change the name but then the guestbook went blank, like all the entries were erased. I changed it back to datalife.txt and it's back to normal. Am I doing something wrong here?

Thanks in advance
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Anyone Can View Your Guests' Email Addy's?

Post by Henrie »

You did that right.
But you also need to change in the file settings.php the entry

Code: Select all

/* Name of the file where guestbook entries will be stored */
$settings['logfile']='datalife.txt';
Where datalife.txt should be changed to the new name of the file.

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