domain_restriction.exe: Prohibited Domain Names
The domain_restriction
utility is used to manage the list of domain names that are prohibited when users create sites. This prevents users from creating sites with the names identical to the domain names of popular online stores and other resources. Then, these users can receive email messages sent by your customers to these domains, because the mail server ensures local delivery.
Usage
domain_restriction <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command adds the domain name example.com to the list of prohibited domain names in Plesk:
domain_restriction --add -name example.com
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Adds a domain name to the list of prohibited domain names. |
To add a domain name domain_restriction --add -name example.com or domain_restriction -a -name example.com |
|
|
Adds several domain names to the list of prohibited domain names. Used with the |
To add a number of names to the list of prohibited domain names: domain_restriction --add-list -list example1.com,example2.com,example3.com |
|
|
Removes all domain names from the list of prohibited domain names. |
To remove all domain names from the list: domain_restriction --remove-list |
|
|
Removes a domain name from the list of prohibited domain names. |
To remove the domain name example1.com from the list: domain_restriction --remove -name example1.com or domain_restriction -r -name example1.com |
|
|
Updates a prohibited domain name. |
To modify the prohibited domain name example1.com: domain_restriction --rename -name example1.com -new-name example2.com |
|
|
Turns on the checking for prohibited domain names. |
To enable checking for prohibited domain names server-wide: domain_restriction --enable |
|
|
Turns off the checking for prohibited domain names. |
To disable checking for prohibited domain names server-wide: domain_restriction --disable |
|
|
Displays the list of prohibited domain names. |
To view the list of prohibited domain names in Plesk: domain_restriction --list or domain_restriction -l |
|
|
Displays help on the usage of the utility. |
To view help on the use of the domain_restriction --help or domain_restriction -h |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Specifies a domain name. |
To add a domain name domain_restriction --add -name example.com |
|
|
Specifies a new name for a domain in the list of prohibited domain names. Used with the |
To modify the prohibited domain name example1.com: domain_restriction --rename -name example1.com -new-name example2.com |
|
|
Specifies a list of domain names. Used with the |
To add a number of names to the list of prohibited domain names: domain_restriction --add-list -list example1.com,example2.com,example3.com |