abazoskib Posted November 18, 2009 Share Posted November 18, 2009 i have a messageboard, where only users from a specific college can post to that colleges page, however i am having trouble trying to figure out a way to stop spammers. basically, i will have to ask for registration info, but how can i match up the email address to the college they are registering for? otherwise it would be a spamfest, and so far all i have is a restriction on the email address domain to have an edu extension. any advice, or tips i could use in this project? Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/ Share on other sites More sharing options...
emopoops Posted November 19, 2009 Share Posted November 19, 2009 check to see id the college name is in the email adress? if thats how the email adress is related tot he colleges. u would need to use $pieces = explode("@", $emailadressfromform); $domainofemail = $pieces[1]; if(stristr($domainofemail,$collegename?fromform?) == TRUE){ it contains the colegname so like if the emial is whatever@thecollegname.com or something? i think this is the right function: http://php.net/manual/en/function.stristr.php Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960519 Share on other sites More sharing options...
abazoskib Posted November 19, 2009 Author Share Posted November 19, 2009 not all colleges have the exact name in the domain. my college email address domain was student.wpunj.edu..so that would not be a very good way of doing it. I know that the old facebook used to have a system like this, I just cant figure out how to do it, unless I have to ask each school if they want to be included in it? Seems a bit of a stretch but might be my only option. Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960562 Share on other sites More sharing options...
emopoops Posted November 19, 2009 Share Posted November 19, 2009 u cant do it with php until YOU figure out what shows which college the user is from in the email adress itself. u still havent clarified it. or are u figuring out which college they are from a different way? if so HOW? if the names are different in the email then u need to figure out which part each college has in the email. like blah@wsu.blah(washington state university would be wsu.) then u would have to make an array for each college and what the email must contain for that college. then u have to check each array with something like the php function i included. if u cant figure out what emails contain for each school u cant do it at all. it wouldnt work is there any other way u can filter for spam like captcha or something? Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960564 Share on other sites More sharing options...
abazoskib Posted November 19, 2009 Author Share Posted November 19, 2009 well i think my only solution at the moment is to set up a script to scrape off every college websites for anything that looks like an email address and throw it into a db table. im sure i can find the majority of domains that way. hmm. Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960572 Share on other sites More sharing options...
MadTechie Posted November 19, 2009 Share Posted November 19, 2009 if you send a activation email to the user who register, then anyone who spams you can ban from the system, as for matching them up, can't you just have a drop down so the user can select their college ? Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960582 Share on other sites More sharing options...
emopoops Posted November 19, 2009 Share Posted November 19, 2009 are u forcing them ro register with the email they have at the college? Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960583 Share on other sites More sharing options...
abazoskib Posted November 19, 2009 Author Share Posted November 19, 2009 if you send a activation email to the user who register, then anyone who spams you can ban from the system, as for matching them up, can't you just have a drop down so the user can select their college ? Well yeah, but I dont want for example, someone who goes to Rutgers University, posing as a Wyoming University student. And emopoops, yes I will be forcing a college email registration. I already set up a recursive scraper for email addresses that will scan through every college website on my list. Hopefully I get some conclusive data out of it. Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960796 Share on other sites More sharing options...
emopoops Posted November 19, 2009 Share Posted November 19, 2009 oh if u have the info then why wont my example work? Quote Link to comment https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960797 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.