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: General / Classic ASP versions(v3.4.XX)
 Email filter at Registration
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cybrax
Starting Member

United Kingdom
2 Posts

Posted - 21 September 2009 :  13:08:03  Show Profile  Visit Cybrax's Homepage
Hello All,

My first post so am trying to make it good one..

I've had a Snitz forum running on my website for a few months now and things are good, apart that is from the almost daily registration of either a dutch or russian spammer using a gmail address.

I read the help files and FAQ but could not find anything about blocking the use of certain certain email adresses at the registration stage. Some sort of GUI add on would help the less experienced folk such as myself for whom VB is not a first language.

Undaunted I wrote my own little bit of code to stop anybody signing up to my forum using a gmail address and a few others for good measure.
Find this the bit in 'register.asp' somewhere around line 280

If strAutoLogon <> 1 then
if Request.Form("Email") = "" then
Err_Msg = Err_Msg & "<li>You Must give an e-mail address</li>"
end if


Then add this code

if InStr((Request.Form("Email")),"gmail")>0 then
Err_Msg = Err_Msg & "<li>Your E-mail Addresses didn't match.</li>"
end if

if InStr((Request.Form("Email")),"verytec")>0 then
Err_Msg = Err_Msg & "<li>Your E-mail Addresses didn't match.</li>"
end if

if InStr((Request.Form("Email")),"cvportal")>0 then
Err_Msg = Err_Msg & "<li>Your E-mail Addresses didn't match.</li>"
end if

if InStr((Request.Form("Email")),".ru")>0 then
Err_Msg = Err_Msg & "<li>Your E-mail Addresses didn't match.</li>"
end if


I know it is very basic and could do with some refinement but does seems to be working well so far.

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 21 September 2009 :  17:03:33  Show Profile  Visit HuwR's Homepage
have you checked out the 'Blocked E-Mail Domains' under Admin Options


and not everyone on gmail is ahacker or spammer, you excluding a large number of perfectly legitimate users from your forum
Go to Top of Page

Cybrax
Starting Member

United Kingdom
2 Posts

Posted - 23 September 2009 :  04:34:00  Show Profile  Visit Cybrax's Homepage
Gaaghhh, fiddlesticks... I must have an earlier version
'Blocked E-Mail Domains' does not appear under Admin Options for me.
Oh well, my forum is long overdue for an overhaul.

I agree with you not all gmail users are up to no good and a blanket ban is far from an ideal solution. Just as restricing access solely by IP adderess is also going to prevent legitimate users getting in.

Will download the latest version and see what has changed.

Best regards
Jon.



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.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07