Prevent attacks on your WHM server

After successful installing of WHM Server you need to do some changes:
– Change the default page of the server
– Hide all information about server from error pages
– Change the style of the pages

First of all, there are many bots that crawl the default pages of servers, if they could autodetect the software installed on the server, the could autostart the bruteforce attacks. To prevent such attacks we need to change all default pages:

These pages are located in /usr/local/apache/htdocs/. Remove index.html, create index.shtml and add the code from 403.shtml. Then open cp_errordocument.shtml, change the background, font color, all words which contain cpanel. Then open directory and do identical operations. That’s all.


Leave a Reply

Your email address will not be published. Required fields are marked *