{"id":4118,"date":"2022-03-09T13:13:53","date_gmt":"2022-03-09T13:13:53","guid":{"rendered":"http:\/\/wpx.net\/kb\/?post_type=ht_kb&#038;p=4118"},"modified":"2026-02-12T14:48:57","modified_gmt":"2026-02-12T14:48:57","slug":"how-can-i-keep-my-wordpress-sites-secure","status":"publish","type":"ht_kb","link":"https:\/\/wpx.net\/kb\/how-can-i-keep-my-wordpress-sites-secure\/","title":{"rendered":"How can I keep my WordPress sites secure?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We have implemented different security levels on our servers to keep your websites safe.   However, as we mentioned in our Malware removal rules and security standards <strong><a aria-label=\"article (opens in a new tab)\" href=\"http:\/\/wpx.net\/kb\/wpx-malware-removal-rules-and-security-standards\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">article<\/a><\/strong>, the security of your website is a 2-way street: WPX &amp; YOU. Here we will discuss the WordPress security tips that you should implement on your sites. <\/p>\n\n\n\n<div style=\"text-align:center;\">\n  <div style=\"background-color:#FFFFCC; \n              border:2px dotted #333; \n              padding:25px; \n              font-family: Arial, sans-serif; \n              font-size:18px; \n              line-height:1.6; \n              display:inline-block; \n              max-width:1200px;\">\n    <b>DID YOU KNOW?<\/b><br>\n    WPX customers NEVER EVER waste time researching &#038; fixing frustrating \n    security issues <br>BECAUSE we fix it for them fast &#038; free. Fact.<br> \n    And our WP hosting plans start at \n    <a href=\"https:\/\/wpx.net\/cart\/wordpress-hosting\/\" \n       target=\"_blank\" \n       rel=\"noopener noreferrer\"\n       style=\"font-weight:bold; text-decoration:underline;\">\n       $11.99 monthly<\/a>.\n  <\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress Security practices that you should use. <\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Limit access:<\/strong> <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Reduce the number of people who have administrative access to your WordPress site to a minimum. You can also reduce the number of possible entry points. This can be done by only installing web applications that you need and use. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Stay Up-to-Date:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Do your best to stay up-to-date with your WordPress site, including plugins, themes, and the PHP version. The latest version of WordPress is always available from the<strong> <a href=\"https:\/\/wordpress.org\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">main WordPress website<\/a>.<\/strong> Official releases are not available from other sites\u2014<strong>never<\/strong> download or install WordPress from any website other than <a href=\"https:\/\/wordpress.org\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\"><strong>https:\/\/wordpress.org.<\/strong><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, you can just <a aria-label=\"install WordPress  (opens in a new tab)\" href=\"http:\/\/wpx.net\/kb\/how-can-i-install-wordpress-on-my-website\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\"><strong>install WordPress <\/strong><\/a>with a few clicks from the WPX Control Panel. This way you can be sure that the source of your installation is not compromised. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Trusted Sources<\/strong>:<\/h3>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">Aside from being extremely dangerous, <strong>using nulled\/cracked plugins is a <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/wpx.net\/page\/terms-of-service\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">violation of our Terms and Services<\/a> <\/strong>and is <strong>grounds for immediate termination<\/strong> of your account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Secure your Working Environment<\/strong>:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Do not download plugins and themes from sources that are not trusted. Googling for a free version of a premium plugin is asking for trouble. Malicious people and organizations distribute what are known as \u2018nulled\u2019 plugins and themes that come bundled with malicious code and malware. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure that your local computer, browser, and routers are up to date, and free of any spyware, malware, and virus infections. Consider using tools like <strong>NoScript<\/strong> (or disabling JavaScript\/flash\/java) in your browser and VPNs to encrypt your online communication when moving around and using different public Wi-Fi hotspots. You should also secure your mobile devices and install any updates as soon as they become available.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Always use strong passwords:<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The purpose of your password is to make it difficult for other people to guess and to help prevent a brute-force attack. The key to making a strong password is making it complex, long, and unique. It is recommended to use a password generator for all passwords or create passwords that would only make sense to you personally.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to use reliable software that generates and stores all of your passwords for you, we recommend using <strong>KeePass<\/strong>. All you have to do is download the application and create a database file that will take care of the rest of your password by entering the file using a master password.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/keepass.info\/download.html\" target=\"_blank\" aria-label=\"Download Link (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">Download Link<\/a><\/strong><\/li>\n\n\n\n<li><a aria-label=\"Guide Link (opens in a new tab)\" href=\"https:\/\/keepass.info\/help\/base\/firststeps.html\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\"><strong>Guide Link<\/strong><\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Protect your WP-admin area<\/strong>:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can change the wp-admin URL that you use to log in to your WordPress dashboard. You can use a plugin such as<a aria-label=\" WPS Hide Login (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/wps-hide-login\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\"><strong> WPS Hide Login<\/strong><\/a> to change the login URL. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional WordPress security tips.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you are technically familiar with WordPress and would like to know some additional security measures, then the following points will help you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>WP-Includes<\/strong>:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A layer of protection can be added to the PHP scripts located in the WP-includes directory,  Those scripts are generally not intended to be accessed by any user. One way to do that is to block those scripts using <strong>mod_rewrite<\/strong> in the .htaccess file.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">To ensure the code below is not overwritten by WordPress, place it outside the # BEGIN WordPress and # END WordPress tags in the .htaccess file. WordPress can overwrite anything between these tags.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Block the include-only files.\n\nRewriteEngine On\nRewriteBase \/ \nRewriteRule ^wp-admin\/includes\/ - &#91;F, L] \nRewriteRule !^wp-includes\/ - &#91;S=3] \nRewriteRule ^wp-includes\/&#91;^\/]+.php$ - &#91;F,L] \nRewriteRule ^wp-includes\/js\/tinymce\/langs\/.+.php - &#91;F,L] \nRewriteRule ^wp-includes\/theme-compat\/ - &#91;F,L] \n\n# BEGIN WordPress<\/code><\/pre>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">This won\u2019t work well on Multisite, as <br><strong>RewriteRule ^wp-includes\/[^\/]+\\.php$ \u2013 [F,L] <\/strong><br>would prevent the ms-files.php file from generating images.  <br>Omitting that line will allow the code to work.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>WP-Content\/Uploads<\/strong>:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The uploads directory is the one directory that will need to be writable by the webserver. It\u2019s where all files are uploaded remotely. If you want to prevent PHP execution in this directory, you can do this by placing a .htaccess at the root of \/UPLOADS using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#Kill PHP Execution \n&lt;Files ~ \"\\.ph(?:p&#91;345]?|t|tml)$\"&gt;\ndeny from all\n&lt;\/Files&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">This can <strong>break your theme<\/strong> if it requires PHP execution in UPLOADS. If you apply it and the site breaks, remove it and the site will reappear.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Disable File Editing<\/strong>:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Disabling file editing within the WordPress dashboard is also recommended. WordPress has a constant that disables this editing via the wp-config.php file. Append the following two lines to the end of your wp-config file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Disable Editing in Dashboard\ndefine(\u2018DISALLOW_FILE_EDIT\u2019, true);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">That&#8217;s it! Now you know more about WordPress security and what you can do to protect your sites. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stuck at any point? Don\u2019t worry, just click the live chat widget in the bottom-right, and one of our support agents will assist you in <strong>under 30 seconds<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Related: <a href=\"https:\/\/wpx.net\/kb\/err-ssl-protocol-error\/\"><strong><span style=\"text-decoration: underline;\">What to do if you see a ERR_SSL_PROTOCOL_ERROR warning<\/span><\/strong><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have implemented different security levels on our servers to keep your websites safe. However, as we mentioned in our Malware removal rules and security standards article, the security of your website is a 2-way street: WPX &amp; YOU. Here we will discuss the WordPress security tips that you should&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":3,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"footnotes":""},"ht-kb-category":[27],"ht-kb-tag":[96],"class_list":["post-4118","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-security","ht_kb_tag-bruteforce"],"_links":{"self":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/4118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/comments?post=4118"}],"version-history":[{"count":29,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/4118\/revisions"}],"predecessor-version":[{"id":14261,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/4118\/revisions\/14261"}],"wp:attachment":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/media?parent=4118"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=4118"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=4118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}