-
-
Notifications
You must be signed in to change notification settings - Fork 39
02 2. Control domain
domain command has management for subscriber.
$ relay control domain
List all subscriber, set/unset domain as limited or blocked and undo subscribe domain.
Usage:
control domain [command]
Available Commands:
list List domain
set Set domain as limited or blocked
unfollow Send Unfollow request for provided domains
unset Unset domain as limited or blocked
Flags:
-h, --help help for domain
Global Flags:
-c, --config string Path of config (default "config.yml")
-v, --verbose Show debug log
Use " control domain [command] --help" for more information about a command.
Lists currently subscriber / limited / blocked domains.
$ relay control domain list
List domain which filtered provided type.
Usage:
control domain list [flags]
Flags:
-h, --help help for list
-t, --type string domain type [subscriber,limited,blocked] (default "subscriber")
Global Flags:
-c, --config string Path of config (default "config.yml")
-v, --verbose Show debug log
-
List all subscribers.
$ relay control domain list
-
List all blocked domains.
$ relay control domain list -t blocked
Register limited / blocked domain.
$ relay domain set
Set domain as limited or blocked.
Usage:
control domain set [flags]
Flags:
-h, --help help for set
-t, --type string Apply domain type [limited,blocked]
Global Flags:
-c, --config string Path of config (default "config.yml")
-v, --verbose Show debug log
-
limited domain
Statuses that sent from limited domain are not forward to other servers. So, this suitable usage is for server that to send Immoral status.
-
blocked domain
Relay do not accept follow request for server registered as blocked domain. It can not use any feature with relay.
-
Register example.com as blocked domain.
$ relay domain set -t blocked example.com
-
Register example.com as limited domain.
$ relay domain set -t limited example.com
Unregister limited / blocked domain.
$ relay domain unset
Unset domain as limited or blocked.
Usage:
control domain unset [flags]
Flags:
-h, --help help for unset
-t, --type string Apply domain type [limited,blocked]
Global Flags:
-c, --config string Path of config (default "config.yml")
-v, --verbose Show debug log
-
Unregister example.com as blocked domain.
$ relay domain unset -t blocked example.com
-
Unregister example.com as limited domain.
$ relay domain unset -t limited example.com
Relay send unfollow request to subscriber/follower. This usually use after register in blocked domain.
$ relay domain unfollow
Send unfollow request for provided domains.
Usage:
control domain unfollow [flags]
Flags:
-h, --help help for unfollow
Global Flags:
-c, --config string Path of config (default "config.yml")
-v, --verbose Show debug log