Script URL:
Version of script: 1.43
Hosting company:
URL of phpinfo.php:
URL of session_test.php: http://edessin.com/php/gbook.php
What terms did you try when SEARCHING for a solution:
"block view access" "javascript within php" "password protect guestbook view"
Write your message below:
Everything within this script works exceptionally well. However, I am using this guestbook as a way of receiving requests for services with my business, and I don't want the public bring able to see that information. Example: http://edessin.com/php/gbook.php goes to my view guestbook but if someone goes there, I want a java script to pop up to ask for a password. Now, I do have the appropriate code in my links for people to sign it directly without going directly to view, but for the smart people, they can simply delete the "?a=sign", and I don't want them to see what's posted.
I also tried putting the code in the header.txt, but it password protected both add and view, while I only want view protected.
Please help, thanks so much
Blocking public from viewing guestbook
Can't help you with your own code as you did a lot of editing, but another way of doing it would me forcing all posts to be private and you could only read them with your password.
Just open gbook.php in a plain text editor and edit line 743 (in ORIGINAL file) from to
Just open gbook.php in a plain text editor and edit line 743 (in ORIGINAL file) from
Code: Select all
<p align="center"><input type="checkbox" name="private" value="Y" '.$isprivate.'>Make this post private</p>
Code: Select all
<input type="hidden" name="private" value="Y"
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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