Top 12 Wordpress Security Measures That You Can't Miss!
What's On This Page:
- Rename "Admin" to Something Else
- Change your Database Prefix to Something Else
- Be Fully Upgraded at All Times
- Use Robots.txt to Disallow Access
- Create An .htaccess File for WP-Admin
- Drop A Blank HTML File Into Your Plugin Folder
- Password Protect WP-Admin on the Server Side
- Remove All "Wordpress" References
- Install the WP Security Scan Plugin (it's free)
- Beware of CHMOD 777
- Prevent DOS Attacks
- Protect Wordpress Against Content Theives
Rename "Admin" to Something Else
Remove this generic name as your administrator login
When you first create a Wordpress site or blog, the default login that most people create is a default account called "admin." Be sure NOT to do this, since it's not mandatory to name your admin account "admin." Instead, use a different name as your administrator login.If you use "admin," you're using the most common login that hackers will attempt to get in with, and you'll make the job 50% easier on them if you do! If you've already named your account "admin," simply go into your "users" menu, create a new user and give it administration rights, then remove the default account.
Change your Database Prefix to Something Else
Once again, don't go with a common default!
Be Fully Upgraded at All Times
Being up-to-date = being secure
Sorry to repeat the same thing you've already gotten drilled into your head - but by having the most recent version of Wordpress and all of its plugins, you'll make a huge stride toward having a secure site. Vulnerabilities are always exploited by hackers. When a new version of Wordpress is out, it will notify you via a site stripe at the top of your admin panel. Now that Wordpress has its own auto-upgrade function, it's easier than ever. Use Robots.txt to Disallow Access
Block places that search engines don't need to index
#
User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins/
Disallow: /wp-content/cache/
Disallow: /wp-content/themes/
Disallow: */trackback/
Disallow: */feed/
Disallow: /*/feed/rss/$
Disallow: /category/*
Create An .htaccess File for WP-Admin
Blocking IP addresses, so that only you can get in!
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Access Control"
AuthType Basic
order deny,allow
deny from all
# IP address of my 2nd home computer
allow from 00.000.000.00
# IP addresses of my two work computers
allow from 00.000.000.000
allow from 000.000.00.000
# IP address at my uncle's house
allow from 000.000.0.00
If, by any chance, you don't want to do this - you can also rename the /wp-admin folder to something entirely different with this tutorial. This is a viable alternative for any Wordpress user who doesn't want anyone to type in "mysite.com/wp-admin" to see the login screen!
Drop A Blank HTML File Into Your Plugin Folder
Give 'em the white screen of death
This is the oldest trick in the book. Open up Notepad. Don't type anything in, and just save the blank page as "index.html." Then, simply save this file into directories such as ..wp-content/plugins (new versions of Wordpress SHOULD already have one in there, that says "Silence Is Golden" within it). By doing so, you're preventing anyone from seeing a list of your plugins. Exploiting Wordpress sites with outdated plugins is one of the most common attacks, and this will help mask some information. Password Protect WP-Admin on the Server Side
A 2nd brick wall they'd have to get through
This will be a minor annoyance to you, but a great additional barrier for the security of your site! On your web server, get into your Wordpress site's account. Find the option for "Password Protect Directories" (this is what it's called in cPanel, but it might be named differently on another platform). Password protect the directory "wp-admin." Give it a unique password, and write it down.Now, if someone attempts to visit YourSite.com/wp-admin, they'll get nothing but a white screen and a pop-up box from the server, asking for a username and password. Unless they know of these, they'll never be able to see the Wordpress admin log-in screen. Of course, this will now give you two passwords you'll have to enter in order to edit your site (the server password and the Wordpress admin password), but you can have your browser "remember" all of these so that you don't have to type them in every time. Just don't lose the passwords!
Remove All "Wordpress" References
...because nobody needs to know it's Wordpress
One more tip is to remove the following line from your header.php file. Matt Cutts from Google Inc. stated that it is no longer needed:
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
Install the WP Security Scan Plugin (it's free)
Scan your site to see how it grades!
Beware of CHMOD 777
When giving too much permission goes bad
Many folders need to be write-able (755) in Wordpress in order for certain things to function. Just be wary of assigning a 777 to anything. For a more technical look at Wordpress CHMOD defaults and security recommendations, see this section of the Changing File Permissions section.
Prevent DOS Attacks
..and kill spam while you're at it!
Wordpress blogs by their own nature are magnets to spam bots. Whether you like it or not, you WILL get hit by them. However, there's a solution for it: by running both Akismet and Bad Behavior (both are free), you'll be able to block spam (with Akismet) and block craftier spam methods (with Bad Behavior), effectively making your Wordpress site spam-free. Protect Wordpress Against Content Theives
Protect your hard work from scrapers & thieves
There are sites out there using what are called "content scrapers" to pull RSS feeds into a website. The biggest threat in these sites is that they might get your page cached in search engines before you do, essentially making your original article become "duplicate content." This is rare, but possible. There is a remedy, though - by using the Feed Footer plugin, you can insert a line of code within your articles that will only appear in RSS format that point to your website. In other words, every time your article gets scraped, you also get a backlink to your site, which defeats the purpose of anyone scraping your site :)For a better look at what else you can do to stop content thieves, look to this article which has a collection of other methods.
You Might Also Like...
-
Wordpress CMS: Using WP as a Website Builder!
-
Who would have known the best blogging platform has become the best CMS? Learn the best way to make Wordpress take the place of your ineffective CMS. Time to make a REAL website!
-
Best Wordpress Plugins
-
Find the best Wordpress plugins quickly and easily with this free list of personal recommendations! All of the best Wordpress plugins listed here are widely believed to be the best and most used plugins available today. Use them in confidence...get t...
-
Best Wordpress Themes
-
A list of the best Wordpress themes: both free and premium blog, magazine and newspaper style themes that turn your Wordpress blog into an authority site: complete with organized content, images, videos, ad spots and more!
Got Your Own Wordpress Security Tips?
Share them here!
-
Reply
- boutiqueshops boutiqueshops Nov 5, 2009 @ 8:54 pm
- Extremely helpful & TIMELY as I just upgraded one of my wordpress sites. Yoinks! Great stuff here ~ favorited & tweeted!
-
Reply
- Stazjia Stazjia Oct 22, 2009 @ 4:29 am
- This looks like an invaluable guide to improving security on a Wordpress blog. Blessed by an Angel.
-
Reply
- aj2008 aj2008 Oct 21, 2009 @ 11:42 am
- This is a very helpful article about WordPress - thank you and Blessings from a grateful Angel.





