How to Secure your Login Page using CloudFlare

There are many ways to protect your login page and you don’t have to spend a dollar buying expensive security plugin.

CloudFlare is my go-to solution when I want to block everyone out except myself from my login page.

Follow these steps to protect your login page the same way that I do

Steps to Secure your Login Page

Firstly, you have to go to your domain on CloudFlare since Firewall rules are created on a site by site basis

Protect Login Page - CloudFlare (0)

Secondly go to your DNS Records

Protect Login Page - CloudFlare (1)

Thirdly Make sure your site traffic is being proxied by CloudFlare.

Protect Login Page - CloudFlare (2)

Fourth go to your web application firewall (WAF)

Protect Login Page - CloudFlare (3)

Then click the “create firewall rule” button

Protect Login Page - CloudFlare (4)

After that name your firewall whatever you want and choose these values for field and operator from the dropdown menu

Protect Login Page - CloudFlare (5-1)

Once you got that ready, you gotta choose what to do with visitors who want to visit those pages. I suggest blocking everyone.

Protect Login Page - CloudFlare (6.1)

Then Click “the deploy button” and your login page security concerns will be gone

Protect Login Page - CloudFlare (6)

Now go to the “tools tab” inside the Web Application Firewall

Protect Login Page - CloudFlare (7.1)

There you have to whitelist the IP that you don’t want to block including your home and Office IP and Click the “add button”

Protect Login Page - CloudFlare (7)

Finally come back later and go to your web application firewall and then overview to check your firewall performance

Protect Login Page - CloudFlare (8)

Click any of the results and check details about the visitors being blocked

Protect Login Page - CloudFlare (9.1)

Open any of the log results and confirm that the Firewall is blocking only threats

Protect Login Page - CloudFlare (9)
JM

Sobre Jose Manuel

I am José Manuel. I am writing about things I know and things that I am learning about WordPress. I hope you find this blog useful.