Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke
Author Message
mds
Client



Joined: Dec 24, 2004
Posts: 194
Location: Michigan

PostPosted: Fri Jan 19, 2007 10:23 pm Reply with quote

I added this email to the ban email list in the forum admin last night *@mail.ru however two more spam user accounts where created today using same email extension ...how can i prevent certain emails being used for registration ? i am still searching here but havnt came up with anything yet.
 
View user's profile Send private message
Dauthus
Worker
Worker



Joined: Oct 07, 2003
Posts: 211

PostPosted: Fri Jan 19, 2007 11:12 pm Reply with quote

The easiest way I can think of is to add the following code to the userCheck function. This should be located in the Your Account index file. (Sorry, but I don't use RavenNuke so I am not too familiar with the CNBYA module)

Code:
if (eregi("(mail.ru)$",$user_email)) $stop = "<center>"._ERRORINVEMAIL."</center><br>";


This will give the error message of "Invalid Email Address" if the letters mail.ru are used in the email form on the registration page. It is fairly easy to add additional mail extensions by following the below example.

Code:
if (eregi("(mail.ru)|(mail.xy)|(mail.ab)|(mail.cd)$",$user_email)) $stop = "<center>"._ERRORINVEMAIL."</center><br>";


I'm sure the RavenNuke coders will be able to help with finding the proper location for the code, if you choose to use it.

_________________
Image
Vivere disce, cogita mori 
View user's profile Send private message Visit poster's website
mds







PostPosted: Fri Jan 19, 2007 11:18 pm Reply with quote

Thank you for the reply i will be looking for that
 
mds







PostPosted: Fri Jan 19, 2007 11:27 pm Reply with quote

Thank you for the reply i found this in userCheck function
(!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$",$user_email))) $stop = "<center>"._ERRORINVEMAIL."</center><br>";


should i just replace your (mail.ru) with [mail.ru] or is (mail.ru) acceptable as well ?
 
Dauthus







PostPosted: Fri Jan 19, 2007 11:29 pm Reply with quote

try adding the code on a new line directly below the line you just posted. Let me know the results.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Jan 20, 2007 3:41 am Reply with quote

Just add @mail.ru to Sentinels string blocker Smile Thats much easier and is one less file edit to remember to re-instate if there are any updates.
 
View user's profile Send private message Send e-mail
Dauthus







PostPosted: Sat Jan 20, 2007 10:10 am Reply with quote

Guardian, I don't know how many times the specific phrase of @mail.ru would be used in text throughout a site, but if someone didn't want mail accounts from aol, msn, and yahoo registering on their sites and added them to the string blocker, would they even be able to use the words aol, msn or yahoo anywhere in their site using that method?
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Jan 21, 2007 1:04 am Reply with quote

Assuming you did @msn.com , @yahoo.com , etc. Smile
Besides, people shouldn't be posting their emails in public anyway.

I wouldn't really want to block those, but @mail.ru is a definite. They don't take an precaution on who uses their emails apparently.



Just for your info:
[mail.ru] is different from (mail.ru) in regular expressions. So the correct choice here is (mail.ru)
You can add other phrases by seperating with a pipe |

(mail.ru|web.de|gawab.com|cashette.com)
is what I recommend blocking

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
death_dream
Hangin' Around



Joined: Aug 10, 2006
Posts: 38

PostPosted: Fri Feb 02, 2007 8:04 am Reply with quote

So add "(mail.ru|web.de|gawab.com|cashette.com)" to "String List Add" evaders99?

~Death Dream~
 
View user's profile Send private message Visit poster's website
evaders99







PostPosted: Fri Feb 02, 2007 10:57 am Reply with quote

No, I meant to add that to the code Dauthus provided.

You will need to add those individual to Sentinel's string blocker
 
death_dream







PostPosted: Fri Feb 02, 2007 6:21 pm Reply with quote

Thanks evader that did the trick I think lol. The d*** guy started to use gmail accounts >.> What the hell am I suppose to do now? I have been just going in manually and deleting them and I think that might be the only way.

~Death Dream~
 
evaders99







PostPosted: Sat Feb 03, 2007 12:40 am Reply with quote

Wait for the better CAPTCHA in the next RavenNuke release, see if it stops these bots or not
 
death_dream







PostPosted: Sat Feb 03, 2007 6:21 am Reply with quote

Well I don't use RavenNuke I just use NukeSentinel 2.5.00.

~Death Dream~
 
mds







PostPosted: Sat Feb 03, 2007 2:38 pm Reply with quote

yea the above code worked for me.. havnt had any registrations with the mail.ru since added..thanks very much
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©