In this blog, I wrote so many articles related to security parameters of WordPress. This article is about securing WordPress without using too many code hacks and plugins.
First, connect your WordPress with Cloudflare content delivery network. It works in two ways. Cloudflare works as a firewall to your website as well as with its different configurations enabled it can secure your website.
Due to extreme security mechanisms, crawlers, bots are stopped from accessing websites on the first hand and that provides a huge boost to website owners as most of their website bandwidth limits did not get wasted out here and it open for real and authentic web visitors all the time.
Cloudflare is the globally distributed network and its server are located worldwide and for this, it makes website always on even the original server of website shows download time.
Its main aim is to protect the entire internet and for this its dedicated community of webmasters and many people are employing this on to their network to make it more viable and more visible in such circumstances.
Cloudflare can be used by any webmasters who do have the choice of hosting. It does not work directly with blog spot or other subdomain considering if you have your own domain and then followed by sub-domain and if the main domain is connected with Cloudflare then the subdomain too can be connected with it considering it should have the main domain in hosting parameters.
If you’re hosting more part is not the partner with Cloudflare then also you could easily add Cloudflare by changing a name server of domains and it does not take 24 to 48 hours to activate but, it does activate with immediate effect.
Login to your hosting provider and then reach to my account or cpanel login to find the list of orders. Basically, you should find the names of products such as if you have single domain Linux hosting and domain registration, codeguard or any other add-on, Then click on the name of the website to reach to panel list of orders and ten from domain registration find the name server which manages the domain name uses.
Then click on it and then it should open manage nameservers and from there add the two designated name servers you have from Cloudflare while adding website and you should have noted down it and then in the place of existing hosting provider name server you should add Cloudflare powered name server and for better security or in the case in the future you wish to change it then it is better to note down hosting name servers at the safer place.
Inside of Cloudflare control panel, there had been many tabs and corresponding information attached thereon. In the analytics segment, one could find detailed website requests from visitors and cached requests which were meant to be reproduced from Cloudflare servers worldwide.
Bandwidth saved from original hosting could be known and that quantity should be there as well as if you have enabled page rules for your website then it should provide fewer servers to Cloudflare as it could cut the costs of hosting as well as that of Cloudflare servers to a considerable extent.
The more and more content served from Cloudflare servers provides more and more cached resources and more and more savings of bandwidths as well. In this way, Cloudflare is now enabled with your domain and this means that it will speed up website loading time and stay as a firewall so that each viewer and bots will be measured closely before they allow to visit your website.
Most of the web hosting does provide the additional option of caching of your files so that these loads fast on the website. According to cPanel the main characteristics of Varnish, are:
Varnish can speed up your website by up to 3-5x by Caching Static and Dynamic content (Images, CSS, plain HTML, etc.)
Enabling Varnish might result in your local logs and traffic analysis to break
Varnish will not work with https by default
If your website needs to display dynamic data, we recommend you not to enable Varnish for that domain name as it might result in your website to display inaccurate data
Varnish should not be enabled on the domain name on which you have installed WHMCS or any similar software which requires fresh data on every access.
Optimize Website from cPanel:
Optimize the performance of your website by tweaking the way Apache handles requests. Apache allows you to compress content before sending it to the visitor’s browser. The types of content to be compressed are specified by MIME type. This feature requires Apache’s mod_deflate to function correctly. It is advisable to use ‘Compress All Content’ to load the website faster.According to cPanel,
Hotlink Protection from cPanel:
According to cPanel hotlink protection is:
Hotlink protection prevents other websites from directly linking to files (as specified below) on your website. Other sites will still be able to link to any file type that you don’t specify below (ie. HTML files). An example of hotlinking would be using an tag to display an image from your site from somewhere else on the net.
The end result is that the other site is stealing your bandwidth. List all sites below from which you wish to allow direct links. This system attempts to add all sites it knows you own to the list; however, you may need to add others.
IP Blocker in cPanel:
There are instances of some internet protocol address from users who constantly trying hard to send you spam messages and you can directly block those internet protocol address from cPanel itself. According to cPanle IP Blocker is:
This feature will allow you to block a range of IP addresses to prevent them from accessing your site. You can also enter a fully qualified domain name, and the IP Deny Manager will attempt to resolve it to an IP address for you.
cPanel Virus scanner:
Use cPanel virus scanner to scan mail, the entire home directory where the word press installation has been done, the public web space which will be accessed by viewers and the public FTP space where files are uploaded to the server.
Enable Flexible SSL through Cloudflare:
SSL certificate has a public key and private key, after receiving information from the host, the servers of Cloudflare see the private key installed on the server and then with the available public key it decrypts data and then sends it to user’s computer.
Even Google encourages webmasters to carry out this HTTPS protocol so that internet assets can be well protected and a definite trust should be built upon all website visitors so that internet would be a safer and mightier
Before writing these tutorials, all safety measures have been taken but under any circumstances, the reader should not blame the writer as this tutorial is for the educational process and with it the webmaster could garner and learn about it and then on his or her own idea should start implementing the forms of SSL on their site.
Due to recent Google announcement of giving prominence and importance to SSL or HTTPS as a ranking signal which also enables webmasters to go for SSL or HTTPS but due to the high amount of price associated with it most of the webmasters do not intended to move to this through hosting provider.
Cloudflare is one of the most dynamic CDN (content delivery network) services which provides the huge amount of encouragement for website owners to move towards the possibility of faster web access and now it is offering free SSL to non-HTTPS websites which means it is a boon for most word press websites to make it completely secure.
Different SSL options for Cloudflare:
Even free Cloudflare users can carry out SSL on their site and this is a great news for users. Cloudflare offers different SSL options such as off, flexible SSL, full SSL, Full SSL strict in its crypto option after adding a website with Cloudflare.
Login to https[:][//]www[.]cloudflare[.]com[/] and then register it and then log in to it and then add a site from the right-hand upper side of its dashboard and then add the site and click continue and Cloudflare should scan your site for DNS records for some time.
Then it should show the list of Cname, A records and MX records and then click on the grey clouds beside those and it should become an orange cloud and this means now your site is slowly moving to the Cloudflare cloud storage.
Before implementing Cloudflare flexible SSL on your HTTP site it is important that your site should be full with Cloudflare and for this, it is important to change the name servers of your hosting to Cloudflare name servers.
It should show the names servers of cloud flare now and it should be two name servers considering the which plan you have been. For a personal site the free plan is good and in the future, if you wish to shift to other plans can do it without any difficulties. Note down both the name servers of cloud flare and then open Cpanel hosting.
Login to it and reach to manage orders and then open domain registration and from there open name servers and click on it and after opening of it you should be seeing the nameservers provided to you by hosting provider and then cut both and then change both to the name server of Cloudflare which you have written just now and then update name servers.
Name servers are used to point your domain name to your website or email service. Cloudflare should give you at least two name servers and paste those servers and drop hosting name server and wait for one or two hours for DNS propagation to be completed.
Or wait for at least 24 hours and in these time there could have been
Now the first part of connecting your site to Cloudflare DNS is completed. This means from now on all the A. AAAA, CNAME record of your traffic should be routed entirely through Cloudflare system. Before adding Cloudflare name server to your domain name server.
It is important to remember to delete hosting nameservers and add the two assigned name servers of Cloudflare which has been assigned to you and it is important to remove all the other name servers from the system otherwise Cloudflare integration with your website should not start.
Those who have the SSL certificate from the host could carry out full SSL with Cloudflare. It could be accessed through after logging into Cloudflare click on the name of the site you assigned Cloudflare which should be at the left-hand top of the website.
This tutorial is all about learning of how to make flexible SSL through Cloudflare on HTTP websites. After clicking on the name of the site in a series of menu buttons should appear from there. Click on crypto to appear its sub menus.
Crypt settings of Cloudflare management cryptography settings for your website. The first submenu of crypto settings of Cloudflare is SSL which encrypt communications to and from your website using SSL even without an active SSL certificate and here we should be choosing flexibly.
The benefits of using SSL are vast and enormous for webmasters. It ensures that the sending and receiving information in encrypted cryptographic tunnels.
The information put forward by visitors remains confidential. Your website contents have not been modified or stolen while receiving from the server to the client computer. Of course, as earlier, we have discussed the search engine rankings of your website to get the major boost from it.
Here, I perceive your website is on HTTP and in order to make it https with the help from cloud flare you should be using flexible SSL here there should be an encrypted connection between website visitors and Cloudflare but not from Cloudflare and your hosting server.
The benefits to having flexible SSL on your website is that you do not need to purchase expensive SSL certificate on your server and additionally your website visitors should see the SSL Lock green icon on their web browser. You can open https://mohanmekap.com on your web browser to see the flexible HTTPs in action.
If you disable Cloudflare settings within your host by deleting name servers then suo motto the SSL settings of your website should be deleted. In order to keep these settings on Cloudflare name servers should be there with your domain hosting provider.
The process of enabling flexible https on your HTTP site
Enable Auto Minify in CloudFlare:
According to Cloudflare what does Auto Minify do is as follows,
Auto Minify removes unnecessary characters from your source code (like whitespace, comments, etc.) without changing its functionality. Minification can compress source file size which reduces the amount of data that needs to be transferred to visitors and thus improves page load time.
Cloudflare’s Auto Minify feature may intentionally not minify some scripts under specific circumstances to ensure we don’t create errors in your website code. On these occasions the code will be delivered unminified:
If the file is served from an external service or a domain not powered by Cloudflare (For example Google, Facebook, Twitter, widgets etc). For more, take a look at Does Auto Minify impact third party scripts?
If the file contains .min in the filename
If the file has syntax errors and it cannot be parsed
Inline CSS or JS embedded inside your HTML code will not be minified
Auto Minify will not remove newlines from your HTML but will remove unnecessary whitespace
Enable Rocket Loader in CloudFlare:
According to Cloudflare rocket loader improves page load time by,
Asynchronously loading scripts, including third-party scripts, so that they do not block the content of your page from loading immediately
Caching scripts locally (using LocalStorage, available on most browsers and smartphones) so they aren’t refetched unless necessary.
In this article, I convey some of the most common ways to protect your WordPress installation. Most of these come from the server side or from the content delivery network side and for this only enabling them most of these work nicely. WordPress security is a vast subject and it is difficult to deal with them.
First and foremost if we look closely most of hosting providers does have above-mentioned security add-ons and if you enabled Cloudflare or any other content delivery network for sure you would find that another host of other add-ons and some of these add-ons I mentioned in this article.
- The relevance of technology bloggers
- The Ultimate WordPress Security Guide
- How to Make Money from your Blog
- Cool and useful WordPress hacks that requires no plugins
- How to secure WordPress working environment?
- Tips to drive more traffic to your WordPress website
- How to Set up Cloudflare free CDN by Changing Name Server for WordPress Sites
- How To Fix “Error Establishing A Database Connection” In WordPress after reset Mysql users passwords
- Search Engine Optimization
- How to fix “Jetpack has locked your site’s login page”