Security Measures To Be Taken While Installing WordPress

You might have already learned about how to install WordPress in your server, if you have followed our earlier posts. But, while installing the WordPress for your site, you may have skipped the method to make it more secure while installing it. So, here we will describe about the security measures which needs to be taken care of, while installing WordPress for your site.

You can install WordPress for your site through this below mentioned method:

But, in those steps, there is no description of the security measures which needs to be taken care of at all, while installing WordPress for your site. So, to let you know for securing your site in this way of the WordPress install, the security measures to be taken especially lies in the database steps, which is to change the default Table Prefix value of WordPress to any other prefix.


Here, in the above image, we have changed the default WordPress table prefix, to our custom table prefix, ie, to unique_. So, while this is changed, then, hackers may not easily be able to hack your site since they could not guess what prefix is added for your database file of the WordPress install and hence, your WordPress site will be more secure than before from one of the aspects.

You can also install WordPress through the below mentioned method too for your site:

While installing WordPress through the method described above, you will be changing all of your entry directly in the wp-config.php file. So, during this way of install, there is the need of more changes, than installing it directly. Here, the changes to be made for the security measures, are adding the unique keys and salt as well as changing the table prefix too as above method.

Applying unique keys and salt

You can find the unique keys and salts for your WordPress install through this link. Every time you refresh that provided link, you will get new unique salt keys. So, copy all of the codes from that url and paste it in just below this code in your wp-config.php file:

* Authentication Unique Keys and Salts.
* Change these to different unique phrases!
* You can generate these using the {@link secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
* @since 2.6.0

Now, for changing the table prefix, in this same file, you will get the option to add unique table prefix, which is just below this code:

* WordPress Database Table prefix.
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
$table_prefix = 'wp_';

Here, you need to change the prefix of your database file according to your liking. Here, we have changed it to unique_, as shown in the image below:


By applying the above discussed method while installing WordPress for your site, you will make your site more secure from one of the aspects. By applying this method to secure your site, hackers can’t easily hack your site and hence you can say that your site is more secure than ever before and look for any other method to secure your site.

Post navigation

Bishal Napit

Bishal Napit is a WordPress theme developer from Tansen, Palpa, with a passion to learn more on WordPress.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.