Anti-Spam Guestbook - Filter info


Anit-Spam Guestbook Script
Version 1.2
COPYRIGHT @ 2005 by Aubrey Millard

How to set up the HTML Files


I am not going to get into a big HTML tutorial here. This is just a few simple steps to help you set up your Guestbook and Addguest HTML files.

First in Notepad or whatever editor you like to use open the HTML file "addguest.html"
Look for this line:

<!--Edit the line below so it points to your server and the script-->
<form method="post" action="http://somedomain.com/cgi-bin/asgb.pl">
Now edit that line to point to where the guestbook script is.


Now go down near the bottom of the page and find this line:
<A href="gusetbook.html">Back to the Guestbook Entries</A>

Edit the link to the Guestbook file.
Save your changes and open up the file called guestbook.html.
Find the line that reads:

<p align=center>
Thank you for visiting our pages. 
We would love it if you would <A href="addguest.html">Add</a>
 to this guestbook we are keeping!<br><br><br>
<br>
All you have to do is make sure the above link points to the proper addguest.html file.

If you read down a little further you will find:

<p align="center"><hr></p><br>
<!--begin--><br>
<br>
<!--Do not delete the above line or the script wont work!--><br>
<!-- Once you have copied the Enrty format to the script you can
	 use this file as your guestbook.<br>
     Edit it the way you want with colors and images.<br>
    You can safely delete everything between here (including these comments)
	and the line that says --><br>
	<!--End Guestbook Entries--> <br>
Pretty self explanitory. Don't touch the line that says <!--begin-->
View the HTML file in your browser or look here to see what the different entry formats look like.
Once you have decided which one you like then we can copy and paste it into the script.
Once again open up the asgb.pl file in Notepad and look for the lines that read:

################################################################################
#                      GUESTBOOK ENTRY
# This is the HTML format for the entry into your guestbook.
# Format it any way you want. There is a good example here.
# You can copy and paste one of the formats from the guestbook.html file
# included in the zip file or create your own.
#
# Here is the list of "special" tags you can use to display things that the
# person wrote.
#
#      ** Notice there is a difference between a {} and () **
#      ** The field name MUST be surrounded by {} and NOT () **
#
# These first few should be self explanitory....
# $FIELDS{'name'} $FIELDS{'city'} $FIELDS{'country'}
# $FIELDS{'howfound'} $FIELDS{'message'}
#
# The next couple may need some explanation if you are new to this.
# $FIELDS{'url'} - this is the persons website if they filled it in.
# $EMASK - this is the persons email address. How it will look
#          depends on if you set $MASKEMAIL to YES or not.
# $ENV{'REMOTE_ADDR'} - This is the persons IP Address. ie. 192.168.200.102
################################################################################
sub GetEntry
{
  $FIELDS{'url'}=&CheckURL($FIELDS{'url'});
  
$SUBMISSION=<<SUBENTRY; ### ONLY EDIT BELOW THIS LINE!
  <TABLE border="0" width="100%">
	 <TR><TD bgcolor="#ccffff">
			 $DATE <!-- $ENV{'REMOTE_ADDR'} submitter's IP address -->
	 </TD></TR>
	 <TR><TD>
			 <b>$FIELDS{'message'}</b>
	 </TD></TR>
	 <TR><TD>
			 <b>$FIELDS{'name'}</b>&nbsp;&nbsp;$EMASK &nbsp;
			 &nbsp;&nbsp;&nbsp;&nbsp;<
			 A HREF="$FIELDS{'url'}">HomePage</A> <br>
			 <i>Where are you from? </i>&nbsp;&nbsp;$FIELDS{'city'}
			 &nbsp;&nbsp;$FIELDS{'country'}<br>
			 <i>How did you find us?</i>&nbsp;&nbsp;$FIELDS{'howfound'}
      <br><br>
	 </td><tr>
  </table>
SUBENTRY
}#DO NOT EDIT THE ABOVE LINE! it will NOT show up in the guestbook.

Once yo have decided which format you want copy everything from the:
<TABLE border="0" width="100%">
to the
</table>

And paste it into the script overtop of the one that is there. (highlighted in GREEN)


Back to Help