{"id":5,"date":"2013-11-25T17:25:30","date_gmt":"2013-11-25T17:25:30","guid":{"rendered":"http:\/\/etapien.com\/guides\/?p=5"},"modified":"2020-08-24T14:22:37","modified_gmt":"2020-08-24T19:22:37","slug":"securing-your-wordpress-installation","status":"publish","type":"post","link":"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/","title":{"rendered":"Securing your wordpress installation"},"content":{"rendered":"<p><strong>Securing your wordpress installation:<\/strong><\/p>\n<p>We all know how easy it is to setup a <a href=\"http:\/\/wordpress.com\">WordPress<\/a> site, well unfortunately if you don&#8217;t take safety measures it will be easy to hack it too, so here are a few steps to help you secure your site.<\/p>\n<p>First, let&#8217;s make sure to have a backup of your data base and files before making any changes, backing up if always a good practice.<\/p>\n<p>I recommend that after making any changes to your site you should to test everything to ensure nothing broke before moving on to the next step.<\/p>\n<p><strong>Things to do to your wordpress installation:<\/strong><\/p>\n<ul>\n<li>Install and use some security plugins, like <a href=\"http:\/\/wordpress.org\/extend\/plugins\/better-wp-security\/\" target=\"_blank\" rel=\"noopener noreferrer\">Better WP Security Plugin<\/a> or <a href=\"http:\/\/wordpress.org\/extend\/plugins\/wordfence\/\" target=\"_blank\" rel=\"noopener noreferrer\">Wordfence Security plugin<\/a>.<\/li>\n<li>Do not use the default database table prefix of \u201cwp_\u201d, change it to something random. This is harder to do when you have a site running but not impossible.<\/li>\n<li>Edit your wp-config.php file and change the wordpress keys. Tip is to use the <a href=\"http:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress Key Generator<\/a>.<\/li>\n<li>Do not use the default login name og \u201cadmin\u201d, change it to something random.<\/li>\n<li>Use secure passwords. Combine upper\/lowe case, numbers and special characters<\/li>\n<li>Always update your WordPress installation as soon as possible, the same goes for plugins and themes.<\/li>\n<li>And keep the amount of plugins to a minimum. If it\u2019s not in use, remove it.<\/li>\n<\/ul>\n<p><strong>If using Apache, which is the most common web server:<\/strong><\/p>\n<ul>\n<li>use .htaccess to ass an IP restriction to your wp-admin directory<\/li>\n<li>or add a password to access the wp-admin directory<\/li>\n<\/ul>\n<p><strong>If you&#8217;re using nginx then here are some recommendations:<\/strong><\/p>\n<p>I haven&#8217;t tested this yet so make sure you backup, then backup once again, test, and then test once again before going live.<\/p>\n<p>Add this to your nginx config file but make sure to go through it before, as some things may need to be changed to work with your site settings:<\/p>\n<p>_________________________________________________________________________________<\/p>\n<blockquote>\n<p style=\"text-align: left;\">if ( $request_method !~ ^(GET|HEAD|POST)$ ) {<br \/>\nreturn 444;<br \/>\n}<\/p>\n<p style=\"text-align: left;\">location ~ \/(.|wp-config.php|readme.html) {<\/p>\n<p style=\"text-align: left;\"><em id=\"__mceDel\"> return 444;<br \/>\n}<\/em><\/p>\n<p style=\"text-align: left;\">location ~ ^\/(\\d+)\/$ {<br \/>\nreturn 301 \/?p=$1;<br \/>\n}<\/p>\n<p style=\"text-align: left;\">location = \/wp-login.php {<br \/>\nauth_basic \u201cRestricted\u201d;<br \/>\nauth_basic_user_file \/etc\/nginx\/htpasswd;<br \/>\ninclude fastcgi_params;<br \/>\nfastcgi_index index.php;<br \/>\nfastcgi_pass 127.0.0.1:9000;<br \/>\nfastcgi_split_path_info ^(.+.php)(\/.+)$;<br \/>\n}<\/p>\n<\/blockquote>\n<p>_________________________________________________________________________________<\/p>\n<p>Hopefully these few tips will help your site become more secure. I know there are many more tips that will help secure your site out there so don&#8217;t think this is it, do some more research as hackers don&#8217;t rest.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are a few things that will help secure your Wordpress site.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[3],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Securing your wordpress installation - Tech Howtos<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Securing your wordpress installation - Tech Howtos\" \/>\n<meta property=\"og:description\" content=\"Here are a few things that will help secure your Wordpress site.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Howtos\" \/>\n<meta property=\"article:published_time\" content=\"2013-11-25T17:25:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-24T19:22:37+00:00\" \/>\n<meta name=\"author\" content=\"Etapien\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etapien\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/\",\"url\":\"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/\",\"name\":\"Securing your wordpress installation - Tech Howtos\",\"isPartOf\":{\"@id\":\"https:\/\/etapien.com\/guides\/#website\"},\"datePublished\":\"2013-11-25T17:25:30+00:00\",\"dateModified\":\"2020-08-24T19:22:37+00:00\",\"author\":{\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\"},\"breadcrumb\":{\"@id\":\"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/etapien.com\/guides\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Securing your wordpress installation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/etapien.com\/guides\/#website\",\"url\":\"https:\/\/etapien.com\/guides\/\",\"name\":\"Tech Howtos\",\"description\":\"Tech related useful howtos\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/etapien.com\/guides\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\",\"name\":\"Etapien\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"caption\":\"Etapien\"},\"url\":\"https:\/\/etapien.com\/guides\/author\/Etapien\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Securing your wordpress installation - Tech Howtos","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/","og_locale":"en_US","og_type":"article","og_title":"Securing your wordpress installation - Tech Howtos","og_description":"Here are a few things that will help secure your Wordpress site.","og_url":"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/","og_site_name":"Tech Howtos","article_published_time":"2013-11-25T17:25:30+00:00","article_modified_time":"2020-08-24T19:22:37+00:00","author":"Etapien","twitter_misc":{"Written by":"Etapien","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/","url":"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/","name":"Securing your wordpress installation - Tech Howtos","isPartOf":{"@id":"https:\/\/etapien.com\/guides\/#website"},"datePublished":"2013-11-25T17:25:30+00:00","dateModified":"2020-08-24T19:22:37+00:00","author":{"@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424"},"breadcrumb":{"@id":"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/etapien.com\/guides\/securing-your-wordpress-installation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/etapien.com\/guides\/"},{"@type":"ListItem","position":2,"name":"Securing your wordpress installation"}]},{"@type":"WebSite","@id":"https:\/\/etapien.com\/guides\/#website","url":"https:\/\/etapien.com\/guides\/","name":"Tech Howtos","description":"Tech related useful howtos","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/etapien.com\/guides\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424","name":"Etapien","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","caption":"Etapien"},"url":"https:\/\/etapien.com\/guides\/author\/Etapien\/"}]}},"_links":{"self":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":8,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/5\/revisions\/263"}],"wp:attachment":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}