How do I block or allow messages by country or continent?
To do this you need to set up a Block list or Allow list Filtering Rule.
- Login to SpamExperts as an Admin Level user or as a Domain Level user
- Navigate to Incoming - Protection Settings > Block list Filtering Rules or Allow list filtering rules
- Navigate to the appropriate tab: Domain Rules or Admin Rules
- Click on + Add rule
- Configure the rule as per the filter rule type:
Simple Filtering Rule
- In the Rule name field, give the rule a name which will make it clear that this rule is used to block or allow a specific country or continent
- In the Match dropdown, select Country or Continent
- Ensure is is selected from the match operators dropdown
Country - In the text field, enter the desired Country name as is displayed in the Log Search > Location column e.g. Iran, Islamic Republic of, or United States
Continent - In the text field, enter the desired Continent name e.g. Europe, or North America
Advanced Filtering Rule- In the Rule name field, give the rule a name which will make it clear that this rule is used to block or allow a specific country or continent
- Specify the priority of this rule, this is the order in which this rule will be applied (lowest number = highest priority, highest number = lowest priority)
- In the Match dropdown, select Location
For the Match criteria, the Test String box will provide examples of the kind of information you might need to include in the regular expression.
These are examples only, please ensure you have correctly adapted this in your Regular Expression before applying.
- You will see the Content Type box has now changed to Location Type
The location type may be specified as one of the following:
- "city"
- "continent"
- "country"
- "reprisented_country"
- "registered country"
- "latitude"
- "longitude"
- Write the Regular Expressions of the location(s) you wish to include in the rule in the format as specified in your Location Type field
- Add a flag if required in the Flags text box
The advanced filtering rule dialogs provide a Cheatsheet of some useful features for use in regular expressions.
Unfortunately, the Technical Support team is unable to support any customisation of the predefined Rulesets or those you build yourself.
Due to the potential complexity in building a regex pattern, we advise that only users with regex experience should attempt to create new rules or customise existing ones. - Click Save to add the rule
The dialog that is displayed here depends on whether you have enabled or disabled the Use advanced custom filtering rules option in the User profile page. For more information, see Manage Your Admin User Profile or Manage Your Domain User Profile.