Forum Moderators: phranque

Message Too Old, No Replies

Setting Up a Guestbook

Setting Up a Guestbook

         

tkteo

3:20 am on Jun 11, 2003 (gmt 0)

10+ Year Member



Dear Webmasters,

I am new to HTML and CSS (and totally ignorant about other web languages, sorry).

The situation is this: my high school buddy is stricken with leukemia. I have set up a webpage for his appeal for bone marrow donors. Now, I will like to set up a Guestbook for well-wishers to post messages.

I visited a site like bravenet.com , and it appears that they can host a guestbook for free.

On the other hand, I am also thinking of hosting the guestbook on my own domain. Will the experts please recommend sites that offer such services, source code, etc?

Macguru

4:36 am on Jun 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi tkteo,

Sorry to hear about your friend.

You can install a free perl script on your server. If you follow the instructions step by step, there should be no problem. Ask your web host if you can have a cgi-bin. Most of them offer it in basic service.

Go at hotscripts.com and hit perl to find one that suits you.

martinibuster

4:56 am on Jun 11, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi tkteo,

Let us know how the install goes. Perl scripts can sometimes seem/be troublesome.

Do not hesitate to post here with more questions if you have them.

:) Y

tkteo

5:48 am on Jun 11, 2003 (gmt 0)

10+ Year Member



You guys can predict the future! I am in trouble already!

I downloaded "Free Perl Guestbook" from [vitinh.de...] (mods: please edit away this URI if it is not needed, thanks) and extracted the zip file, which contains only one file: "guestbook.cgi".

I FTP onto my web space, and there is already a "cgi-bin" folder there (separate from the "html" folder). So I upload the file into the "cgi-bin" folder, and "CHMOD" the file to 755, as indicated on the installation guide.

Now, the guide tells me to access "mydomain.com/cgi-bin/guestbook.cgi" in order to start the installation, and so I did. What happens? I get the following:

HTTP 500: Internal Server Error
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

What do I do now? My web hosting package uses Unix, and I checked my package features, and it claims to support user's own cgi-bin. Also, I checked the cgi file using a text editor and the first line does begin with that "#!/usr/local/bin/perl" thingie.

tkteo

7:44 am on Jun 11, 2003 (gmt 0)

10+ Year Member



I think I just solved the problem. Had to get the correct directory for Perl from the web host, and make sure FTP was set to ASCII.

Everything seems alright now.

Thank you.

tkteo

8:59 am on Jun 11, 2003 (gmt 0)

10+ Year Member



Now I am thinking of minimizing spam bots from spidering the guestbook cgi file. (When people sign the guestbook, email address is optional by the way.)

I inserted the following into robots.txt:

User-agent: *
Disallow : /cgi-bin/

(cos the cgi file is located in that folder)

What other hardcore (pardon the slight pun) steps can I take to minimize all kinds of spidering of the guestbook page?

I have been looking through threads to do with guestbook(s). The stuff about setting up "spider traps" is mind boggling me!

martinibuster

1:51 pm on Jun 11, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Make sure that html is disabled, that way you won't attract guestbook spammers. Put a meta noindex,nofollow tag on the guestbook pages to drive home the point that spamming your guestbook is pointless.

tkteo

3:28 pm on Jun 11, 2003 (gmt 0)

10+ Year Member



martinibuster:

html is already disabled by default. The URI for the guestbook ends with the .cgi extension, and I guess the guestbook is dynamic, in the sense that when people sign the guestbook, the data file containing the contents of their messages is refreshed.

I will send a message to the creator of the guestbook and ask him if he can add the robots.txt meta tag.

martinibuster

3:33 pm on Jun 11, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



<meta name="robots" content="noindex,nofollow">

Although it's dynamic, it is based on a template. Look into the code and see if there's a <head> section, then drop the above meta tag into it.

tkteo

12:32 am on Jun 12, 2003 (gmt 0)

10+ Year Member



done that. Thanks!