xhost
Manage access control lists for X server connections. tldr-pages
On Linux
Linux
Display the current access control list
xhostIdentifyAllow a specific host to connect to the X server
xhost +hostnameIdentifyDeny a specific host from connecting to the X server
xhost -hostnameIdentifyAllow all hosts to connect (disable access control - insecure)
xhost +IdentifyDeny all hosts except those explicitly allowed (enable access control)
xhost -IdentifyRemove a specific user or address using a family prefix (like inet:hostname or si:localuser:username)
xhost -family:nameIdentify