{"id":1831,"date":"2012-07-23T02:13:53","date_gmt":"2012-07-23T02:13:53","guid":{"rendered":"http:\/\/www.serverslot.com\/?p=1831"},"modified":"2013-01-23T17:46:15","modified_gmt":"2013-01-23T17:46:15","slug":"how-to-secure-wordpress-to-be-hacked-by-hackers","status":"publish","type":"post","link":"https:\/\/serverslot.com\/hosting-issues\/how-to-secure-wordpress-to-be-hacked-by-hackers\/","title":{"rendered":"How to secure wordpress to be hacked by hackers"},"content":{"rendered":"<p><span style=\"color: #000000;\">That is really a good question to reply\u00a0How to secure wordpress to be hacked by hackers and here i would like to give you a lengthy but up to great extent effective answer.<\/span><\/p>\n<p><span style=\"color: #000000;\">In the world of information technology,we often hear a word HACKER and its threats.<\/span><\/p>\n<p><span style=\"color: #000000;\"> <strong>What is a HACKER?<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> Hacker is a computer expert and GURU who can damage the information,can access your authority<\/span><br \/>\n<span style=\"color: #000000;\"> without your permission for their own satisfaction and sometimes destroying the prestige of<\/span><br \/>\n<span style=\"color: #000000;\"> your business.So if you ever have faced any such situation in your life and now wants to secure<\/span><br \/>\n<span style=\"color: #000000;\"> your WEBSITE\/BLOG more securer then its an article which can help you to know that how can it<\/span><br \/>\n<span style=\"color: #000000;\"> is possible for you.<\/span><\/p>\n<p><span style=\"color: #000000;\">Well, if you think that you can manage your website\/blog easily by yourself and you are good<\/span><br \/>\n<span style=\"color: #000000;\"> for installing themes and plugins,Please read the section below.<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Security Measurements:<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\"><strong>Upgradation<\/strong>:<\/span><\/p>\n<p><span style=\"color: #000000;\">Upgrade your WordPress script to latest version when available at WordPress.org when possible.<\/span><br \/>\n<span style=\"color: #000000;\"> it will enhance the protection by 80% because every version of wordpress filled with new<\/span><br \/>\n<span style=\"color: #000000;\"> security features and patches.<\/span><br \/>\n<span style=\"color: #000000;\"> Use another username rather than using &#8221; admin &#8221; as WordPress is an open source application<\/span><br \/>\n<span style=\"color: #000000;\"> and now everyone knows that &#8221; admin &#8221; is the default username of WordPress.It makes too easy<\/span><br \/>\n<span style=\"color: #000000;\"> for hackers to hack your password as the remaining work reduces at 50% as they your username<\/span><br \/>\n<span style=\"color: #000000;\"> already.Avoid using default prefix &#8221; wp_ &#8221; as well.<\/span><br \/>\n<span style=\"color: #000000;\"> Changing your username its not a difficult task.All you have to these small steps:<\/span><br \/>\n<span style=\"color: #000000;\"> 1- Go to phpMyAdmin<\/span><br \/>\n<span style=\"color: #000000;\"> 2- User&#8217;s Tables<\/span><br \/>\n<span style=\"color: #000000;\"> 3- Open it and paste the following SQL Commands and run.<\/span><\/p>\n<p><span style=\"color: #000000;\">update wpwins_users set user_login=\u2019helloadmin\u2019 where user_login=\u2019admin\u2019;<\/span><\/p>\n<p><span style=\"color: #000000;\">That&#8217;s it your username will be changed as per your desired one.<\/span><\/p>\n<p><span style=\"color: #000000;\">This is an example command which change the prefix to &#8220;wpwins&#8221; and your WordPress username to<\/span><br \/>\n<span style=\"color: #000000;\"> &#8221; helloadmin &#8220;.Both are the values are for example and can be changed by your wish.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>CHOOSING A PASSWORD:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> Choose a password which is hard to guess and more unique.Changing your username is not a<\/span><br \/>\n<span style=\"color: #000000;\"> guarantee that you are safe from hackers 100% and the others cannot crack into your security.<\/span><br \/>\n<span style=\"color: #000000;\"> Choose a password with upper case letters,lower case letters and also characters and numbers.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>CORRECTING FILE PERMISSIONS:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> Hackers can easily crack your security if you don&#8217;t set correct permission for your files and<\/span><br \/>\n<span style=\"color: #000000;\"> folders.Use always 0755 permission for your every folder and 0644 for your files.If you want<\/span><br \/>\n<span style=\"color: #000000;\"> to edit a file in the WordPress Theme Editor then the permission will be 0666.<\/span><br \/>\n<span style=\"color: #000000;\"> Don&#8217;t set permission as 0777 as it allows the Hackers access.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Editing with WordPress Keys:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> WordPress scripts have some security keys which are normally same in all updates and releases.<\/span><br \/>\n<span style=\"color: #000000;\"> No one trying to change these keys and some of us are unaware of it.So we did&#8217;nt notice to<\/span><br \/>\n<span style=\"color: #000000;\"> change these keys.But you have to change these keys in the file wp-config.php to make a secure<\/span><br \/>\n<span style=\"color: #000000;\"> database information.<\/span><br \/>\n<span style=\"color: #000000;\"> Use the following link to generate new security keys, every time you open this URL,you have<\/span><br \/>\n<span style=\"color: #000000;\"> new keys there:<\/span><\/p>\n<p><span style=\"color: #000000;\">https:\/\/api.wordpress.org\/secret-key\/1.1\/<\/span><\/p>\n<p><span style=\"color: #000000;\">You can edit your wp-config and change your security keys as listed below:<\/span><\/p>\n<p><span style=\"color: #000000;\">define(\u2018AUTH_KEY\u2019, \u2018your unique value goes here\u2019);<\/span><br \/>\n<span style=\"color: #000000;\"> define(\u2018SECURE_AUTH_KEY\u2019, \u2018your unique value goes here\u2019);<\/span><br \/>\n<span style=\"color: #000000;\"> define(\u2018LOGGED_IN_KEY\u2019, \u2018your unique value goes here\u2019);<\/span><br \/>\n<span style=\"color: #000000;\"> define(\u2018NONCE_KEY\u2019, \u2018your unique value goes here\u2019);<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Secure Directory Listing:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> WordPress is an open source application so anyone can know the structure of your files\/folders<\/span><br \/>\n<span style=\"color: #000000;\"> including hackers inside your hosting.They can gain access to your directories\/files because<\/span><br \/>\n<span style=\"color: #000000;\"> normally all the browsers show the directory structureof your script.To solve this issue,Put<\/span><br \/>\n<span style=\"color: #000000;\"> a blank index.php file in each directory where index file is not placed by default.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Keep an updated Backup:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> All the above steps can bring a peaceful state of your mind but keep in mind that security is<\/span><br \/>\n<span style=\"color: #000000;\"> always for break so there&#8217;s a best suggestion for you all that take periodic backup of your<\/span><br \/>\n<span style=\"color: #000000;\"> database and files and never trust completely on your security bars.There&#8217;s no one can claim of<\/span><br \/>\n<span style=\"color: #000000;\"> having 100% secure WordPress\/Blog website.<\/span><br \/>\n<span style=\"color: #000000;\"> Keep regular backup of your Blog.If anything goes wrong due to successfull hacking you will<\/span><br \/>\n<span style=\"color: #000000;\"> be able to recover the actual image of your website\/blog.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Plugins Installation:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> If you are new to WordPress then don&#8217;t be so worry about this.We are always there for you to<\/span><br \/>\n<span style=\"color: #000000;\"> help you out.You may ask us or any other people who are familiar with WordPress organizing<\/span><br \/>\n<span style=\"color: #000000;\"> to implement all the above mentioned steps for security purposes just to make it even more<\/span><br \/>\n<span style=\"color: #000000;\"> securer.So perform every step with caution and carefully.Install these plugins steps given<\/span><br \/>\n<span style=\"color: #000000;\"> below immediately for WordPress better security and safety.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>1- WordPress Security Virus Scanning:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> Install this plugin to know that whether all the securities related to your Website\/Blog<\/span><br \/>\n<span style=\"color: #000000;\"> have been implemented correctly?It provides you a detail information that which security is<\/span><br \/>\n<span style=\"color: #000000;\"> implemented and which is working correctly.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>2- Hidden URL:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> Install this plugin to hide your URL Login.You can choose URL login as your desired one e.g.<\/span><br \/>\n<span style=\"color: #000000;\"> (www.domain-name.com\/abc) instead of (www.domain-name.com\/wp-admin) will be same directs you<\/span><br \/>\n<span style=\"color: #000000;\"> to website&#8217;s main\/homepage.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>3- Block failed login Attempts:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"> This plugin will help you out to block unwanted\/fake login attempts to wordpress login page,<\/span><br \/>\n<span style=\"color: #000000;\"> This plugin will block the IP&#8217;s of the failed login attempts made by any Hacker.<\/span><\/p>\n<p><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-6441688276343625\";\n\/* serverslot small horizontal *\/\ngoogle_ad_slot = \"7309259884\";\ngoogle_ad_width = 468;\ngoogle_ad_height = 60;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/p>\n<p><span style=\"color: #000000;\"> ======================================================================<\/span><br \/>\n<span style=\"color: #000000;\">This is the extended version of the previous post (above to it). It is highly recommended that please<\/span><br \/>\n<span style=\"color: #000000;\"> read all those precautions which is mentioned in our previous post before continue reading<\/span><br \/>\n<span style=\"color: #000000;\"> this post.<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>1- Search engine Spiders:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Search engine Spiders crawl all over your website and content unless you block them not to do<\/span><br \/>\n<span style=\"color: #000000;\"> so.We cannot allow spiders to crawl our index page as there are sensitive information related<\/span><br \/>\n<span style=\"color: #000000;\"> to our website in this section.robots.txt is the file which can help you preventing the<\/span><br \/>\n<span style=\"color: #000000;\"> crawlers (web boots) from collecting the information of your website.This file must be placed<\/span><br \/>\n<span style=\"color: #000000;\"> in the root directory.When you want to create the robots.txt file make sure to put the<\/span><br \/>\n<span style=\"color: #000000;\"> following code in it:<\/span><\/p>\n<p><span style=\"color: #000000;\">#<\/span><br \/>\n<span style=\"color: #000000;\"> User-agent: *<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/cgi-bin<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/wp-admin<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/wp-includes<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/wp-content\/plugins\/<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/wp-content\/cache\/<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/wp-content\/themes\/<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: *\/trackback\/<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: *\/feed\/<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/*\/feed\/rss\/$<\/span><br \/>\n<span style=\"color: #000000;\"> Disallow: \/category\/*<\/span><\/p>\n<p><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-6441688276343625\";\n\/* serverslot small horizontal *\/\ngoogle_ad_slot = \"7309259884\";\ngoogle_ad_width = 468;\ngoogle_ad_height = 60;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/p>\n<p><span style=\"color: #000000;\"><strong>2- Protection of .htaccess file:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">.htaccess file in WordPress is responsible for configuration whenever it is placed in the<\/span><br \/>\n<span style=\"color: #000000;\"> directory.It is also used for security restrictions,So this file is mostly a hacker&#8217;s first<\/span><br \/>\n<span style=\"color: #000000;\"> choice to breech into your security.Put the following code into your .htaccess file to<\/span><br \/>\n<span style=\"color: #000000;\"> make it more stronger and efficient.<\/span><\/p>\n<p><span style=\"color: #000000;\"># STRONGEST HTACCESS PROTECTION&lt;\/code&gt;<\/span><br \/>\n<span style=\"color: #000000;\"> &lt;Files ~ \u201c^.*\\.([Hh][Tt][Aa])\u201d&gt;<\/span><br \/>\n<span style=\"color: #000000;\"> order allow,deny<\/span><br \/>\n<span style=\"color: #000000;\"> deny from all<\/span><br \/>\n<span style=\"color: #000000;\"> satisfy all<\/span><br \/>\n<span style=\"color: #000000;\"> &lt;\/Files&gt;<\/span><\/p>\n<p><span style=\"color: #000000;\">Add this code to disable directory listing after Pressing Enter:<\/span><\/p>\n<p><span style=\"color: #000000;\"># disable directory browsing<\/span><br \/>\n<span style=\"color: #000000;\"> Options All -Indexes<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>3- IP Security:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">This code will help you out to protect the IP over Wp-admin directory of your website.Put<\/span><br \/>\n<span style=\"color: #000000;\"> this code in your .htaccess fie:<\/span><\/p>\n<p><span style=\"color: #000000;\"># deny access to wp-admin<\/span><br \/>\n<span style=\"color: #000000;\"> order deny,allow<\/span><br \/>\n<span style=\"color: #000000;\"> allow from x.x.x.x # its is your IP<\/span><br \/>\n<span style=\"color: #000000;\"> deny from all<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>4- Script Security:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Now you are able to protect your WordPress blog \/Website against Script injection and<\/span><br \/>\n<span style=\"color: #000000;\"> unwanted modifications of GLOBAL and\/or_REQUEST.A threat that is highly danger for<\/span><br \/>\n<span style=\"color: #000000;\"> your blog \/ website.Just put the following command lines in your .htaccess file in the root<\/span><br \/>\n<span style=\"color: #000000;\"> directory:<\/span><\/p>\n<p><span style=\"color: #000000;\"># Protection against SQL Injection<\/span><br \/>\n<span style=\"color: #000000;\"> Options +FollowSymLinks<\/span><br \/>\n<span style=\"color: #000000;\"> RewriteEngine On<\/span><br \/>\n<span style=\"color: #000000;\"> RewriteCond %{QUERY_STRING} (\\&lt;|%3C).*script.*(\\&gt;|%3E) [NC,OR]<\/span><br \/>\n<span style=\"color: #000000;\"> RewriteCond %{QUERY_STRING} GLOBALS(=|\\[|\\%[0-9A-Z]{0,2}) [OR]<\/span><br \/>\n<span style=\"color: #000000;\"> RewriteCond %{QUERY_STRING} _REQUEST(=|\\[|\\%[0-9A-Z]{0,2})<\/span><br \/>\n<span style=\"color: #000000;\"> RewriteRule ^(.*)$ index.php [F,L]<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>5- Changing your WP-CONFIG.php file Location:<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">You can change you wp-config file location to make your website\/blog more securer and virus<\/span><br \/>\n<span style=\"color: #000000;\"> proof.This file is hosted in the root directory normally.you can edit this file by accessing<\/span><br \/>\n<span style=\"color: #000000;\"> APACHE but we advice you to move this file out of parent directory or web.Your script will<\/span><br \/>\n<span style=\"color: #000000;\"> get disturbed as soon as you change its file location.Put the below mentioned script to make<\/span><br \/>\n<span style=\"color: #000000;\"> it work again:<\/span><\/p>\n<p><span style=\"color: #000000;\">Default Code :<\/span><\/p>\n<p><span style=\"color: #000000;\">if ( file_exists( ABSPATH . \u2018wp-config.php\u2019) ) {<\/span><br \/>\n<span style=\"color: #000000;\"> \/** The config file resides in ABSPATH *\/<\/span><br \/>\n<span style=\"color: #000000;\"> require_once( ABSPATH . \u2018wp-config.php\u2019 );<\/span><\/p>\n<p><span style=\"color: #000000;\">} elseif ( file_exists( dirname(ABSPATH) . \u2018\/wp-config.php\u2019 ) &amp;&amp; ! file_exists( dirname(ABSPATH) . \u2018\/wp-settings.php\u2019 ) ) {<\/span><\/p>\n<p><span style=\"color: #000000;\">\/** The config file resides one level above ABSPATH but is not part of another install*\/<\/span><br \/>\n<span style=\"color: #000000;\"> require_once( dirname(ABSPATH) . \u2018\/wp-config.php\u2019 );<\/span><\/p>\n<p><span style=\"color: #000000;\">Code after you change file location:<\/span><\/p>\n<p><span style=\"color: #000000;\">if ( file_exists( ABSPATH . \u2018wp-config.php\u2019) ) {<\/span><\/p>\n<p><span style=\"color: #000000;\">\/** The config file resides in ABSPATH *\/<\/span><br \/>\n<span style=\"color: #000000;\"> require_once( ABSPATH . \u2018..\/wp-config.php\u2019);<\/span><\/p>\n<p><span style=\"color: #000000;\">} elseif ( file_exists( dirname(ABSPATH) . \u2018..\/\/wp-config.php\u2019) &amp;&amp; ! file_exists(dirname(ABSPATH) . \u2018\/wp-settings.php\u2019 ) ) {<\/span><\/p>\n<p><span style=\"color: #000000;\">\/** The config file resides one level above ABSPATH but is not part of another install*\/<\/span><br \/>\n<span style=\"color: #000000;\"> require_once( dirname(ABSPATH) . \u2018..\/wp-config.php\u2019);<\/span><\/p>\n<p><span style=\"color: #000000;\">These simple steps will move your wp-config.php file one directory higher.<\/span><br \/>\n<span style=\"color: #000000;\"> Making this change you can guarantee proper functioning of your script.<\/span><\/p>\n<p><span style=\"color: #000000;\">I wish that this article will help you a lot to understand the threats of Website\/Blog<\/span><br \/>\n<span style=\"color: #000000;\"> hacking and how to prevent hackers to crack into your securities.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>That is really a good question to reply\u00a0How to secure wordpress to be hacked by hackers and here i would like to give you a \u2026 <a href=\"https:\/\/serverslot.com\/hosting-issues\/how-to-secure-wordpress-to-be-hacked-by-hackers\/\">more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/1831"}],"collection":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/comments?post=1831"}],"version-history":[{"count":0,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/posts\/1831\/revisions"}],"wp:attachment":[{"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/media?parent=1831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/categories?post=1831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverslot.com\/hosting-issues\/wp-json\/wp\/v2\/tags?post=1831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}