As mentioned earlier, if a block list provider finds a match, the provider always returns a status code of 127.0.0.x. The status code is either an explicit return code or a bit mask, which is a multifunctional return code. If your block list provider returns a value, you can specify which values you want to filter against. However, if your block list provider returns a bit mask, you must understand how a bit mask works to specify the matches that you want to filter.
A bit mask is a method that is used for verifying that a particular bit is set for an entry. A bit mask differs from a traditional mask in that it checks for a specific bit value, as opposed to a subnet mask, which checks for a range of values. Consider the following example.
For each match in its block list, assume a block list provider returns the status codes that are listed in the following table.
Examples of block list status codes
|
Category
|
Returned status code
|
|---|
|
Known source of spam
|
127.0.0.3
|
|
Dial-up user account
|
127.0.0.2
|
|
Known relay server
|
127.0.0.4
|
However, if an IP address is a member of two lists, the block list provider adds the values of the last octet. Therefore, if an IP address is on the list of known relay servers and known sources of spam, the block list provider returns a status code of 127.0.0.7, where 7 is the combined values of the last octet that is returned for the known sources of unsolicited commercial e-mail status code and the known relay servers status code.
If you want to filter against only known sources of unsolicited commercial e-mail, enter a bit mask value of 0.0.0.3; the block list then filters against any of the possible values, in this case, 127.0.0.3, 127.0.0.5, 127.0.0.7, and 127.0.0.9.
The following table lists the bit mask values that are associated with each of the example status codes.
Examples of block list status codes and corresponding bit mask values
|
Category
|
Returned status code
|
Bit mask value
|
|---|
|
Known source of spam
|
127.0.0.3
|
0.0.0.3
|
|
Dial-up user account
|
127.0.0.2
|
0.0.0.2
|
|
Known relay server
|
127.0.0.4
|
0.0.0.4
|
|
Known relay server and dial-up user account
|
127.0.0.6
|
0.0.0.6
|
In the last category in this table ("Known relay server and dial-up user account"), the bit mask 0.0.0.6 returns a match for an IP address only if it appears on both the known relay server and dial-up user account lists. It does not return a match if the IP address appears on only one of the two lists. You cannot use a bit mask to check for a single match in multiple lists.
Note: |
|---|
|
A bit mask checks only against a single value. If you set a bit mask value that is returned when an IP address appears on two lists, the mask matches only IP addresses that appear on both lists. If you want to check for an IP address on either of two lists, enter the status codes for these settings.
|