Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/182075-anti-spam-help/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960519
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960562
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960564
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/182075-anti-spam-help/#findComment-960796
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.