• [email protected]
Facebook Twitter Instagram Pinterest
  • Sign Up Now
  • Login
  • 24/7 Chat Support
  • Blog
Nicways
Menu
  • Shared Hosting
  • VPS Hosting
  • Servers
  • MikroTik VPS
  • Residential VPS
  • Domain
    • Domain Name Search
    • Domain Transfer
  • Security
    • SSL Certificates
    • Domain Privacy
    • Email Security
Return to previous page
Home Blog Topics Premium Shared Hosting

Securing Your WordPress Site

Premium Shared Hosting

Securing Your WordPress Site

We have been having some issues come up recently with clients not fully understanding or knowing exactly how to secure their WordPress site from being hacked. Here’s a quick tutorial on how to do exactly that. Credits go to David from Hostwinds for writing this!

Step 1
Create a backup of your site.

If you have cPanel you can do this with the backup manager.
If not I would recommend “backup buddy”, a WordPress plugin you can find with a google search.

Step 2
Update WordPress Version

This is critical because WordPress issues updates that close security vulnerabilities; it’s things like this that could keep your site healthy!


Step 3
Change Your Login/Password

The default WP username is “admin” and hackers know this. So you should change it to something more personal EG “RocketRanger416” or “James86”. Best thing to do is to add that new user and make it a admin the delete the original login of “admin”

I would suggest really strong passwords (These should incluse UPPER and lowercase letters, numbers, and symbols) Like “Rocket!2@” or “jessieNOMAD12#4”

Most hackers try to brute-force your passwords so if it is really strong you should be fine in that regard.

Step 4
Change your WordPress Keys!

Many people overlook this step but it is an important one as these keys work as salts for cookies and ensure better encryption of data.

Use the WordPress Key Generator to generate mentioned keys. Now edit your wp-config.php file and fine the lines that look like:

and replace them with the ones from the Key Generator.

Save and you’re good to go.

Step 5
Install WP Security Scan

This plugin is great and makes securing your site simple. It scans for security vulnerabilities and informs you of any malicious code.

If the plugin shows your text as green you should be good. However, if they are not green you will have to fix the problem to make them green.

Step 6
Change Table Prefix

— Warning! Make a backup of your database before continuing. —

The default prefix for a WP bsite is “wp_” This makes it so sql injection hacks are easy for the hacker because it is easy to guess.

A good prefix would be “march26_” or “magnol1a_” this is a highly recommended change and you can do this with the WP Security Scan Plug-in.

WP Security Scan has a tab called “Database”. Once you open that tab you have the option to rename your entire prefix to something secure.

Step 7
Prevent WordPress hacks by blocking search engine spiders from indexing the admin area. Spiders crawl all over your site structure unless they are told not to, and we don’t want that.

The easiest way to prevent spiders from indexing the admin area is to create a robots.txt file in your public_html folder with the following lines of code.

Step 8
Prevent .htaccess Hacks

.htaccess (hypertext access) is the default name of directory-level configuration file that provides decentralized management of configuration while inside your web tree.

.htaccess files are often used for security restrictions on a particular directory.

So let’s secure your .htaccess!

First we want to protect the .htaccess file itself so add the following (Do this for all .htaccess files you have in root and or create)

Public_html .htaccess below

Now lets secure your config.php by adding:

Now lets prevent the hacker from browsing your directory tree by adding

Lets prevent some script injections now:

Go to your /wp-content folder. Lets limit access to the wp-content directory by creating a .htaccess in the wp-content folder and adding:

Go to your /wp-admin/ folder. Now if you have a static IP I would recommend creating a .htaccess in your wp-admin folder with the following (replace x’s with your STATIC IP)

Replace the X’s with your IP.

Step 9
Last but not least!

You can install WordPress Firewall 2, which actually prevents most hacking attempts. Use with care, however, because you can lock yourself out of your site!

I hope this helps anyone having WordPress security issues or people who DON’T want to have them.

Share Post
  • Twitter
  • Facebook
  • VK
  • Pinterest
  • Mail to friend
  • Linkedin
  • Whatsapp
  • Skype
How to Import a WordPress data...
Shared Hosting VS VPS Hosting

Related posts

Premium Shared Hosting
Read more

How to Import a WordPress database using FTP and phpMyAdmin

How to Import a WordPress database using FTP and phpMyAdmin In this article I would like to discuss how to recover a WordPress Database backup... Continue reading
Premium Shared Hosting
Read more

Your Trusted Partner for Fast Web hosting

Unlocking the Speed: Why We’re Your Ultimate Partner for Fast Web Hosting Every millisecond counts in the digital age. Upgrade to a faster internet connection... Continue reading
Premium Shared Hosting
Read more

How to Detect and Reduce Resource Overuse in cPanel Accounts

How to Detect and Reduce Resource Overuse in cPanel Accounts This guide will assist you in identifying and reducing resource overuse to ensure your website... Continue reading

Comments are closed

A 360 Degree Web Hosting Solution

We covers you from all dimensions to provide you domain, hosting, web security and development tools!

WordPress is Now a Piece of Cake

With 1-click WordPress installation feature, WordPress is made a piece of cake you would want to take a bite of.

Wide-Ranging FAQ Section

Highly-experienced and super-trained, in-house support experts are here to help you no matter what time it is.

Money-Back Guarantee

Try us and love us, or get a refund within 30 days of signing up! We only charge you if you are satisfied.

FREE Themes and Developer Tools

We give you FREE Themes and Developer Tools to get started without having to pay for development-related things.

Nicways
Facebook Twitter Instagram Pinterest

NICWays is a brand operated by Equalsii Ltd, a company registered in the United Kingdom.

All services offered under the NICWays brand are provided and invoiced by Equalsii Ltd.

HOSTING

  • Domain
  • Shared Hosting
  • VCS / VPS hosting
  • Dedicated hosting
  • Residential VPS
  • MikroTik (CHR)
  • SSL Certificates
  • Domain Privacy
  • Anti Spam Protection
  • Domain
  • Shared Hosting
  • VCS / VPS hosting
  • Dedicated hosting
  • Residential VPS
  • MikroTik (CHR)
  • SSL Certificates
  • Domain Privacy
  • Anti Spam Protection

DOMAIN

    • Domain Search

    • Domain Transfer

POLICIES

    • Privacy Policy

    • Terms & Conditions

    • Copyright Policy

    • Reseller Program

CONTACT US

[email protected]

[email protected]

[email protected]

COMPANY

    • About NICWays

    • My Account

Copyright © 2026 NICWays operated by Equalsii Ltd.
Trustpilot
Paypal-MasterCard-Visa