<% @ Language=VBScript %> <% Option Explicit %> <% 'Set the response buffer to true Response.Buffer = True 'Dimension variables Dim intSpamTimeLimitSeconds 'Holds the number of secounds between posts Dim intSpamTimeLimitMinutes 'Holds the number of minutes the user can post five posts in 'Read in the users colours for the forum intSpamTimeLimitSeconds = CInt(Request.Form("seconds")) intSpamTimeLimitMinutes = CInt(Request.Form("minutes")) 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Configuration.* From " & strDbTable & "Configuration;" 'Set the cursor type property of the record set to Dynamic so we can navigate through the record set rsCommon.CursorType = 2 'Set the Lock Type for the records so that the record set is only locked when it is updated rsCommon.LockType = 3 'we only want one record so set the maximum records to 1 rsCommon.MaxRecords = 1 'Query the database rsCommon.Open strSQL, adoCon 'If the user is changing tthe colours then update the database If Request.Form("postBack") Then 'Update the recordset rsCommon.Fields("Spam_seconds") = intSpamTimeLimitSeconds rsCommon.Fields("Spam_minutes") = intSpamTimeLimitMinutes 'Update the database with the new user's colours rsCommon.Update 'Re-run the query to read in the updated recordset from the database rsCommon.Requery 'Empty the application level variable so that the changes made are seen in the main forum Application("blnConfigurationSet") = false End If 'Read in the forum colours from the database If NOT rsCommon.EOF Then 'Read in the colour info from the database intSpamTimeLimitSeconds = CInt(rsCommon.Fields("Spam_seconds")) intSpamTimeLimitMinutes = CInt(rsCommon.Fields("Spam_minutes")) End If 'Reset Server Objects rsCommon.Close Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing %> ANTI-SPAN CONFIGURATION ANTI-SPAN CONFIGURATION

These Anti-Spam measures are to stop a spammer going on a spree and posting thousands of useless or abusive messages on your forum in a matter of minutes. The higher you set these times the harder it is for a spammer, but bewared set them to high and you may block legitimate forum users.
ANTI-SPAN CONFIGURATION
Time Interval Between Posts:
This how long a forum member needs to wait before posting a new post.
If this is set to high it will stop forum members from posting another post straight after their last post if they suddenly realize they forgot to mention something.
A Forum Member can Post a Maximum of 5 Posts In:
This is the amount of time a Forum Member can post 5 Posts, once this is reached the forum member will have to wait till at least one of their 5 posts is is no longer in this time limit.
PLEASE NOTE :
The Anti-Spam measures do not affect the admin accounts, so you can still post as many messages as you like.
GUEST ACCOUNT ENABLED : - If you have Guest posting enabled then you have no protection against a spammer.

THESE MEASURES ARE NOT FOOL PROOF BUT SHOULD MAKE IT HARDER FOR SPAMMER TO ATTACK YOUR FORUM.