I'm installing WordPress on a shared cPanel hosting for blogging. I'm planning to install it in a folder under public_html, that is, public_html/myblog. I am using WordPress application installer available in cPanel.

What are common security risks and what countermeasures I should take?

  • 2
    I do not know WordPress or CPanel or I would jump in with both feet to help you. Sorry. But I am sure a bullet list and some links for specifics could really help you and others. With WP being hacked so often, I am really glad you are asking now instead of later- after a disaster. This is why I up-voted your question and think it is an important one to ask. Thanks!!
    – closetnoc
    Commented Nov 3, 2015 at 4:04
  • 1
    Prevention is better than cure. Always! :) Commented Nov 3, 2015 at 4:06
  • 1
    Amen!! I agree! Cheers.
    – closetnoc
    Commented Nov 3, 2015 at 4:08

2 Answers 2


Your installation is ok as per your given directory path, To secure WordPress site/blog, you should follow these steps :

  1. Make sure you are using latest WordPress version, update it time by time when new version is available.

  2. Check plugin details, no. of downloads, rating etc before you use any plugin. Also always use latest version of all plugins.

  3. If you have not installed WordPress yet, then during installation, change database table prefix from "WP" to any other string.

  4. Do not create user with username "admin", use some other username and secured/strong password.

  5. From cPanel, Set permission 755 for all WordPress folders and 644 for all files.

  6. Take regular back up of your theme files and database.

  7. Disable all files and directory listing for public users, You can achieve this by .htaccess file.

  8. Change you cPanel, FTP and WordPress login passwords on some regular interval.

  9. You can install plugin that restrict fail login attempts, For ex: block user ip if they tried to login in WordPress admin and insert wrong credential 3 times.

I hope above steps will help you to get some more security for your WordPress blog.


I run a dedicated server with cpanel and the web server that it integrates with is apache and I assume you're account is in a similar setup.

What you want to do immediately is use whatever patience you have to periodically check the server logs, and look for entries of systems trying to access URL's that return a 404 error code. Then search for the files that return a 404 on google, and you'll learn something new.

Now what I did learn is that potential hackers use computers to try to access wp-admin.php along with a host of other junk that's not found on my server. wp-admin.php seems to be a Wordpress component.

Having said all that, here's what I recommend. Check the Wordpress manual, install Wordpress if you like and backup all your data the moment you publish your website. Then remove all the Wordpress components you don't need (especially the login page to the administration interface) or even rename them since potential hackers search for only standard files.

If you do not remove unnecessary components, then the potential hacker will likely find the login interface and then begin flooding the fields with usernames and passwords in hopes that the correct one is discovered. They could use brute-force attacks and/or dictionary-attacks or even anything to get their way in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.