{"id":477,"date":"2008-03-02T16:01:46","date_gmt":"2008-03-02T21:01:46","guid":{"rendered":"http:\/\/rreynoso.com\/blog\/links-n-junk\/protect-your-neck-securing-your-wordpress-blog\/"},"modified":"2008-03-02T16:01:46","modified_gmt":"2008-03-02T21:01:46","slug":"protect-your-neck-securing-your-wordpress-blog","status":"publish","type":"post","link":"http:\/\/rreynoso.com\/reysapoint\/links-n-junk\/protect-your-neck-securing-your-wordpress-blog\/","title":{"rendered":"Protect Your Neck: Securing Your WordPress Blog"},"content":{"rendered":"<p>A couple of weeks ago my other site, the Bible Archive, was flagged by google for containing badware. I think its still listed as flagged: I&#8217;m just waiting for them to review it again to show that there&#8217;s no badware on it. I had a cache on my site that allowed quicker rendering of the site but what wound up happening was that a hacker injected an SQL code so that my site would render a 1 x 1 iframe with a certain w*p*s*t*a*t-s dot i*n*f*0. As it was I had to spend several hours (up till 3 AM) finding this code then removing it. Well, its gone now but here are a few steps for people to learn from my experience and take precautions up front.<\/p>\n<p><!--more--><\/p>\n<ol>\n<li><strong>Update your wordpress. <\/strong>Each time a new version comes out, security holes are patched. Each time you don&#8217;t upgrade, everybody knows about your security holes.<\/li>\n<li><strong>Get rid of plugins you don&#8217;t use.<\/strong> If you have a plugin you haven&#8217;t used, get rid of it. Each plugin has the potential of being an open window into the internet inviting every nefarious hacker inside your virtual home.<\/li>\n<li><strong>Change your admin username. <\/strong>Don&#8217;t simply use the default username for wordpress. Sure you create your own password but that&#8217;s not enough. That&#8217;s like simply changing the keys for your house while everyone knows what model lock.<\/li>\n<li><strong>Change your admin password to something devilish. <\/strong>That means words, letters, numbers and symbols people. Instead of using mcfspassword use MC3Fzp@$sw0(r)D. <a href=\"http:\/\/www.blogherald.com\/2007\/05\/08\/protect-your-blog-with-a-solid-password\/\" target=\"_blank\">Now that is tight<\/a>.<\/li>\n<li><strong>Use a different password for your database.<\/strong> People, being forgetful, like to use the same password for everything. Don&#8217;t.<\/li>\n<li><strong>Protect your admin directory.<\/strong> That means adding an .htaccess file linking to an .htpasswd file or a protect directory command through your web servers control panel. With that put a different username and password.<\/li>\n<li><strong>Protect your ftp account.<\/strong> Personally, I create multiple FTP accounts. My main FTP account is the one given to me by my hosting company. The sub-account is the one I create that only accesses the one folder. That&#8217;s the one I&#8217;ll use. Always.<\/li>\n<li><strong>Protect your content and plugin directory.<\/strong>This ones a bit more convoluted but you can set up the.htaccess so that it blocks any weird viewing and limits it only to calling pictures and what not. This isn&#8217;t a detailed post but others do have the necessary steps.<\/li>\n<li><strong>Rename your wordpress database prefixes. <\/strong>You don&#8217;t want people attacking your site just because they know you have the default info installed. This site here has the <a href=\"http:\/\/tdot-blog.com\/wordpress\/6-simple-steps-to-change-your-table-prefix-in-wordpress\" target=\"_blank\">best instructions yet<\/a> if you can&#8217;t get it to be changed <a href=\"http:\/\/blogsecurity.net\/wordpress\/wp-prefix-changer-v11-released\/\" target=\"_blank\">automatically<\/a>.<\/li>\n<li><strong>Install a plugin to block information call. <\/strong>You don&#8217;t want people to know your version number or what plugins you have installed: so block it to the public. Blogsecurity <a href=\"http:\/\/blogsecurity.net\/wordpress\/bs-wp-noversion\/\" target=\"_blank\">has some great helps<\/a>.<\/li>\n<li><strong>Install a plugin that stops certain attacks. <\/strong>The three that you need are <a href=\"http:\/\/blogsecurity.net\/wordpress\/wordpress-security-whitepaper\/\" target=\"_blank\">here<\/a>.<\/li>\n<li><strong>Backup<\/strong>. Backup your blog. Backup your database. Save them by Date. Back them up again.<\/li>\n<li><strong>Go through the white papers. <\/strong>There is a checklist to make sure you&#8217;re hitting what needs to be done and that&#8217;s <a href=\"http:\/\/blogsecurity.net\/wordpress\/wordpress-security-whitepaper\/\" target=\"_blank\">right over here<\/a>.<\/li>\n<li><strong>In fact, subscribe to <a href=\"http:\/\/feeds.feedburner.com\/blogsecurity\">Blogsecurity&#8217;s Feed<\/a>.<\/strong> They constantly have updates on plugins with security holes.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A couple of weeks ago my other site, the Bible Archive, was flagged by google for containing badware. I think its still listed as flagged: I&#8217;m just waiting for them to review it again to show that there&#8217;s no badware on it. I had a cache on my site that allowed quicker rendering of the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[11],"tags":[76,78,75,77],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-links-n-junk","tag-blogs","tag-hackers","tag-security","tag-wordpress"],"_links":{"self":[{"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":0,"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"wp:attachment":[{"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rreynoso.com\/reysapoint\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}