Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Add AntiSpam to Contact Form
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

TastyNutz
Junior Member

USA
251 Posts

Posted - 04 March 2009 :  17:49:26  Show Profile  Visit TastyNutz's Homepage
Find the following code:


%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%


Right ABOVE that, add this:


'Spam filter - Define keywords to filter, then Call the subroutine
Const KeyWords = "comma,seperated,list,of,words and phrases"
SpamCheck strMessage,KeyWords,SPAM

'Spam filter subroutine
Sub SpamCheck(Data,Words,SPAM)
Dim WordArray, i
WordArray = Split (Words,",",-1,1)
For i = 0 to UBound(WordArray)
If InStr(LCase(Data),LCase(WordArray(i))) Then
SPAM = True
Exit For
End If
Next

If Trim(Data) = "" or SPAM Then
Response.Redirect "default.asp"
End If
End Sub


Add keywords you want to filter to the KeyWords constant.

If the message contains a listed keyword, the spammer is redirected to the main forum and the message is not sent. You can change the redirect if you want, such as http://www.fbi.gov

Have fun!

*The badword filter changed some of my keywords to ****. Be sure to change that back.

<edited by="Shaggy" to="remove words that slipped through the filter" />


PowerQuad Disability Support Forum

Edited by - Shaggy on 05 March 2009 04:35:34
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 04 March 2009 :  18:38:55  Show Profile  Visit leatherlips's Homepage
Thanks! That is a pretty sweet addition! I am sending them to Barney & Friends where they can learn good manners!

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

TastyNutz
Junior Member

USA
251 Posts

Posted - 04 March 2009 :  19:39:08  Show Profile  Visit TastyNutz's Homepage
quote:
Originally posted by leatherlips

Thanks! That is a pretty sweet addition!


Thank Google.


PowerQuad Disability Support Forum
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 10 March 2009 :  18:39:46  Show Profile  Visit leatherlips's Homepage
I've packaged this up into a MOD and posted it over at SnitzBitz. It is called the Contact Page MOD and can be found here.

In the instructions I have given credit to both Carefree and TastyNutz since they have been so helpful in implementing the various features. Thanks guys!

Hopefully others will find this useful for their forums.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 10 March 2009 18:42:50
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07