|How to Fix – Error message Blacklisted Domain on cyberpanel|
How to fix “blacklisted domains in CyberPanel” problem? Read the article to find out more. exthem.es, as part of our CyberPanel Support offers solutions to every question we receive.
When I was trying to create a website account with CyberPanel, I got this Error message: Blacklisted domain.
Fixed blacklisted domains in CyberPanel
When we try to create a website account with CyberPanel, sometimes we may encounter a “blacklisted domain” message. However, after checking the domain in several domain blacklist checkers, we may not find any problems with the domain.
In such a case, we must understand that CyberPanel has a line of code which prevents the domain from being the same as the server hostname. For example, socket.gethostname() could be the offender. This line will prevent the server hostname from being used as a website account.
In this post, we’ll look into two methods to fix this issue.
To get this fixed, simply delete socket.gethostname() from acl.py which is located in this directory.
If it is on a different directory, you can search it with this line of command.
find . -name 'acl.py'
Alternatively, you can also use this one line code to get this fixed. ( Make sure your CyberPanel’s location is in the same directory )
sed -i 's/socket.gethostname(), //' /usr/local/CyberCP/plogical/acl.py
You can also get this fixed by changing the hostname of your server.
To change your server’s hostname, use this command
After changing your server’s hostname, restart your CyberPanel
systemctl restart lscpd
After completing either of those steps, try creating your website account again.
We can easily fix the “blacklisted domain” issue in CyberPanel by carrying out any of the two methods from our exthemes dev described in this article.
Sources : evoxt.com