E-mail Filter

From FUDforum Wiki
Jump to: navigation, search
Info Symbol NOTE: Internally, this function uses preg_match() to evaluate the regular expression. One can use a standard Negative Look Ahead regex to only allow certain E-mail addresses and block all others.

The E-mail Filter admin control panel allows the administrator to block people with a matching E-mail address from posting messages on the forum. It would also prevent people who's E-mail matches the filter, from registering on the forum.

Contents

Block E-mail addresses

Simple Expression

Use this filter if you want to block a specific E-mail address. Ex.

myemail@emaildomain.com

Regular Expression

Use this filter if you want to use regular expression masks to match the E-mail addresses. This is very useful if you want to block all people from a certain ISP. Ex. .*@aol\.com filter would block all people who's E-mail address ends with @aol.com

Only allow certain E-Mail addresses

The regular expression filter can also be used to block all E-mail addresses, except those containing some sort of a special string or coming from a particular domain.

For example, to allow gMail users access, but block all others, enter:

.*@+(?!gmail\.com)

Let take this situation for example: you need to set-up a forum that would only allow registrations of students and staff of a university. There is a slight complication however, while each student has an E-mail address @university.edu, the staff E-mail address vary between @staff.university.edu and @university.on.ca. Regular expression to the rescue, by using regular expression and FUDforum's special prefix '#' you can easily accomplish this tasks as the example below demonstrates.

Example:

.*@+(?!(university\.edu|staff\.university\.edu|university\.on\.ca))

By entering the code above, you will be able to restrict user registrations to people who's E-mail accounts are on the university.edu, staff.university.edu or university.on.ca domains.

Also see

Languages
Personal tools
This is a cached copy of the requested page, and may not be up to date.

Sorry! This site is experiencing technical difficulties.
Try waiting a few minutes and reloading.

(Can't contact the database server: Cannot return last error, no db connection)


You can try searching via Google in the meantime.
Note that their indexes of our content may be out of date.