How to Fix – Error message Blacklisted Domain on cyberpanel

How to Fix – Error message Blacklisted Domain on cyberpanel
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.

Table Of Contents
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.

Option 1

To get this fixed, simply delete socket.gethostname() from acl.py which is located in this directory.

/usr/local/CyberCP/plogical/

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

Option 2

You can also get this fixed by changing the hostname of your server.
To change your server’s hostname, use this command

hostname <new_hostname_here>

After changing your server’s hostname, restart your CyberPanel

systemctl restart lscpd

After completing either of those steps, try creating your website account again.

Conclusion

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

Howdy, I’m exthemes. I’m a web developer living in indonesia. I am a fan of web development, seo, and php. I’m also interested in wordpress and web designer.

You May Like These Posts

No Comments