Author |
Topic  |
|
Zenfor
Junior Member
 
372 Posts |
Posted - 27 November 2008 : 20:02:27
|
I'm wasting my time by getting constant spam type registrations with mail.ru as the email and I want them automatically deleted without any error message as soon as they register. Without installing a whole mod, is there some few lines of code I could insert that would do something like that? Thanks!< |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 28 November 2008 : 03:19:58
|
Something like this should do it:
In "register.asp", look for these lines (appx 637-640):
After them, add the following:< |
 |
|
Zenfor
Junior Member
 
372 Posts |
Posted - 28 November 2008 : 06:26:18
|
Thanks but I just tested it and it didn't work, the mail.ru still went into members pending. I even tried it in upper and lower case. Any other ideas?< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 28 November 2008 : 07:04:58
|
personally I would do it like this.
in register.asp look for these lines
Imediatly after add the following
this does not write anything to the db, it just fails the registration. YOU MUST add something to the Err_Msg as this is how the forum determines whether registration failed or not.< |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 28 November 2008 : 07:12:37
|
Zenfor, you say this:
quote: I'm wasting my time by getting constant spam type registrations with mail.ru as the email and I want them automatically deleted without any error message as soon as they register.
How important is the bold part for you? Of course, you could turn the 'error message' into something like "Registration succesful", while in reality it is not, but won't this give you more questions from genuine @mail.ru users ? I just use the error message "The mail domain you're using is blacklisted.", which is very clear as to why the registration was blocked.< |
portfolio - linkshrinker - oxle - twitter |
 |
|
Zenfor
Junior Member
 
372 Posts |
Posted - 28 November 2008 : 07:30:24
|
quote: Originally posted by MarcelG ...How important is the bold part for you? Of course, you could turn the 'error message' into something like "Registration successful", while in reality it is not, but won't this give you more questions from genuine @mail.ru users ?...
My forum is mainly used by local folks within a small USA town. I'm getting several mail.ru registrations each day which appear to be from the Nigerian scammers. Doing some research on mail.ru, it's a Russian mail service famous for use by spammers, scammers, etc.
I've never has a real mail.ru user and don't ever expect to and would rather not give them an error message that alerts them to what is happening.
Thanks!< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 28 November 2008 : 08:12:19
|
just providing a registration failed message does not give them any indication as to why it failed so they will have no idea what is happening other than they failed to register< |
 |
|
Zenfor
Junior Member
 
372 Posts |
Posted - 28 November 2008 : 09:25:20
|
quote: Originally posted by HuwR
just providing a registration failed message does not give them any indication as to why it failed so they will have no idea what is happening other than they failed to register
Makes sense, so how do I make your code work with a message? Thank you!< |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 28 November 2008 : 10:08:42
|
the code I posted has a fail message, as I explained it MUST have one in order to work< |
 |
|
Zenfor
Junior Member
 
372 Posts |
Posted - 28 November 2008 : 10:53:18
|
quote: Originally posted by HuwR
the code I posted has a fail message, as I explained it MUST have one in order to work
Perfect, that worked like a charm, thank you!< |
 |
|
|
Topic  |
|