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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Quick N' Dirty Email Verification
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hooloovoo
Starting Member

USA
14 Posts

Posted - 21 April 2001 :  15:34:29  Show Profile
My roomie's board was spammed/attacked by a user who signed up with a hotmail addy this morning, so he asked so be able to screen out people like that.

I reached into the back of my brain, and remembering my *very* minimal VB exposure, pulled out this code. It's so short that i'm just going to post it directly in the forum, rather than giving out a DL URL. If it gets to be popular (yeah, right), then I can post the text file out on a server somewhere.

Anyhoo, here's the code. Feel free to mod the holy living crap out of it. ;-)

--------------------------------------------------------------------------

Look for this code in register.asp, about line 110 or so:

If strAutoLogon <> 1 then
if Request.Form("Email") = "" then
Err_Msg = Err_Msg & "<li>You Must give an email address</li>"
end if
if EmailField(Request.Form("Email")) = 0 then
Err_Msg = Err_Msg & "<li>You Must enter a valid email address</li>"
end if
<-------- ### INSERT CODE HERE ###
end if




Somewhere around line 118 of register.asp, right between the 2 "end if" statements:

------------------------------------------------------------------
dim StrResult
StrResult = split(lcase(request.form("Email")),"@")

if StrResult(1) = "hotmail.com" then
Err_Msg = Err_Msg & "<li>To prevent spamming, you cannot use a Hotmail address.<br>"
Err_Msg = Err_Msg & "Contact the <a href=""mailto:" & strSender & """>forum administrator</a> to appeal this policy."
end if

if StrResult(1) = "yahoo.com" then
Err_Msg = Err_Msg & "<li>To prevent spamming, you cannot use a Yahoo address.<br>"
Err_Msg = Err_Msg & "Contact the <a href=""mailto:" & strSender & """>forum administrator</a> to appeal this policy."
end if
-----------------------------------------------------------------

-Quick N' Dirty Email Verification (screens for hotmail & yahoo)
-by Ken Kogler, ken.kogler@curf.edu
-4/21/2001
-Why? Bored on a Saturday...

--------------------------------------------------------------------------

Enjoy!


-Ken

------------------------------------------------------------
Writing a haiku,
in seventeen syllables,
is very diffi--
------------------------------------------------------------

Edited by - Hooloovoo on 21 April 2001 15:35:13

TheMarkel
Starting Member

USA
14 Posts

Posted - 21 April 2001 :  15:35:52  Show Profile  Visit TheMarkel's Homepage  Send TheMarkel an AOL message  Send TheMarkel an ICQ Message
Demo of function:

http://planetmarkel.com/forum/

Works great.

Unfortunately, it appears as though ReadyHosting doesn't work as great, because it's down for the time being. Oops.



'move every 'sig.''


--markel

Edited by - themarkel on 21 April 2001 15:49:01
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 April 2001 :  16:49:05  Show Profile
you might want to change the Topic Title a little.

Instead of Email Verification, it's more like Email Address filtering.

Also, just because someone has a Hotmail address or a Yahoo address, doesn't mean they are a spammer. I have both actually.
Go to Top of Page

Hooloovoo
Starting Member

USA
14 Posts

Posted - 21 April 2001 :  17:14:59  Show Profile
I agree - I have both addresses, too.

The point of his forum is one for all his friends to communicate, and we all have other POP3/IMAP addresses available to us.

There is a mailto: link to appeal your case to the fourm admin in there as well. This is more designed to stop someone from signing up specifically for the purpose of spamming.

Good point on the filtering/verification thing, btw.

-Ken

------------------------------------------------------------
Writing a haiku,
in seventeen syllables,
is very diff--
------------------------------------------------------------
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07