Home >>  9. Anti-spammer > Prohibit Rule (Regular Expression)

Prohibit Rule (Regular Expression)

To better help our users to fight spammers, FC2 created a new feature called the "Prohibit Rule".

The Prohibit Rule is made up of special marks which is often seen in the JavaScript language. It helps to match words that you don't want to show on your blog. It can also list a certain type of entries or IP addresses to your blacklist.

If you select [Don't apply], comments or trackbacks that contain prohibited words will be rejected.
However, if you select [Apply], it gives you more specific options to reject a comment or trackback.

Here is a quick overview of how the Prohibit Rule works:

Example 1: When rejecting a [xxx.hoge.ne.jp] IP format:
Please enter *\.hoge\.ne\.jp
So any comments or trackbacks from [xxx.hoge.ne.jp] IP format will be rejected in the future.

".","*",and "\.hoge\.ne\.jp"symbols stand for:
. = The dot matches a single character, without caring what that character is. The only exceptions are newline characters
* =Quantifier(Greedy) 0 or more times
\.hoge\.ne\.jp = Any phrase that contains this word

Example 2: When rejecting [ntoska123456.oska.nt.ftth4.ppp.infoweb.ne.jp]:
Please enter [oska.nt.ftth4.ppp.infoweb.ne.jp] or [ntoska[0-9]+\.oska]

"ntoska", "0-9", "+", "\.oska"symbols stand for:
ntoska = Any phrase that contains [ntoska]
0-9 = Numbers from 0-9
+ = Repeat more than once
\.oska = Any phrase that contains [\.oska]

This way it is easy to just type one line to reject all similar types of IP addresses.
It also reduces your blacklist space.

Use "Prohibit Keywords"for "Prohibit Rule"
Example 1: Enter keywords within a line [example1] [example2] [example3].
Please enter like this: example1|example2|example3

Example 2: To reject comment formats like: [392Hello there..] and [348The recent efficient rate is 97% ww]
These are commonly seen spam comments. They usually start with three digits.
In this case, you will enter [^[0-9]+|Hello there|efficient rate|97%].

Available Special Characters:

. = Any character (except newline)
* = 0 or more times
+ = 1 or more times
? = 1 or 0 times
^ = Beginning of the line
$ = End of the line
\ = Escape (enable or disable meta character meaning)
| = Alternation
( ) = Group
[ ] = Set (character class in character class)
{ } = Specified amount

For more detail, please see here.
move to top of the page
Category
Search
FC2 Counter
QR Code
QR