How to Block a Domain On my server so that no one can create CPanel account for that domain

Wallu

Active Member
Jan 13, 2020
28
7
3
Finland
cPanel Access Level
Root Administrator
Hi, just out of curiosity, does anyone know if wildcards work in this file? For example:

Code:
*xxx.*
*xxx*.*
xxx*.*
or maybe plain "xxx" in the file would block it in domain name (and sub) entirely?

It says: "Only add domain names and TLDs to this file ", so I bet nope... Would be nice though :)

- Wallu
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
866
122
168
cPanel Access Level
Root Administrator
So the docs page does say this:

"For example, if you list the example.com domain, users also cannot create the sub.example.com domain."

so that would cover any form of *.domain.com by default. I did try doing "totallyrandom.*" and it still let me create "totallyrandom.com" on the server, so it appears wildcards are not supported at this time in that file.

This sounds like a great idea for a feature request though, which you could submit using the link in my signature.
 
  • Like
Reactions: Wallu