Plesk

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:

plesk bin domain_restriction --add -name example.com

Commands

Command Parameter Description Example
--add or -a Adds a domain name to the list of prohibited domain names.

To add a domain name example.com to the list of prohibited
domain names:

plesk bin domain_restriction --add -name example.com

or

plesk bin domain_restriction -a -name example.com

--add-list Adds several domain names to the list of prohibited domain
names. Used with the -list option.

To add a number of names to the list of prohibited domain
names:

plesk bin domain_restriction --add-list -list example1.com,example2.com,example3.com

Exit mobile version