Protection for home page only

I can protect the page I specify with the URI full command.

but I just want to add protection to my home page

Which command should I use for this?

Hello ybenli35,

To add protection to your homepage using Cloudflare’s Firewall Rules, you can use the following steps:

  1. Go to your Cloudflare Dashboard.
  2. Navigate to the ‘Firewall’ tab.
  3. Select ‘Firewall Rules’.
  4. Click on ‘Create a Firewall rule’.
  5. In the ‘Field’ dropdown, select ‘URI Full’.
  6. In the ‘Operator’ dropdown, select ‘Equals’.
  7. In the ‘Value’ field, input / (this represents your homepage).
  8. Under ‘Then’, choose the action you want (‘Block’, ‘Challenge’, ‘JS Challenge’, etc.).
  9. Give your rule a name and click ‘Deploy’.

Now, this rule will protect your homepage.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.