How to make custom page for 1020 error

Hi, I want to make a custom page for 1020 error
(Country block error code for firewall setting)

could you please show me a sample code

I really need help with this


To create Custom error pages at Cloudflare, you would need a Paid plan.

Moreover, kindly see more information about creating one on the article below:

You can try yourself using the code from below:

<!DOCTYPE html>
      <meta charset="utf-8">
      <title> My 1XXX Level Custom Error page</title>
      <style type="text/css">
         html, body{
         h1 { color:red;font-size:22px; }
         h2 { color:blue; }
         p {font-size:16px; color: orange; }
         small {font-size:10px; color: #2eadee; }
      <h1> Dear Visitor, this is an 1XXX example for Custom Level Errors page</h1>
      <p> You can add a stylesheet CSS for more colors, etc. </p>
      <small> This is an example </small>

Thank you so much

1 Like

I am happy if I can assist you. If you need some more help, please be free to ask here at Cloudflare Community :wink:

I am glad you have found a solution for your custom error page :slight_smile:

1 Like

I want to ask a last question

I just want to give permission to enter the address from Turkey

When I use these settings is blocking my attempts from Turkey,

Is there a code I need to add to the “1000 Class Errors” Special pages section

The action from the dropdown menu is selected “Block”.

May I ask what are you trying to achieve whith your Firewall Rule from the attached screenshot?

1 Like to this address just want to give permission to enter from Turkey

Meaning, block all people (or requests) who visit your “/shop/” URL and allow only people from Turkey (or requests made from Turkey country) to be allowed to acces (enter) your URL?

Which would mean, anyone can still access to (including,, but not on the /shop/ part of your Website (or any other sub-folder of /shop/ like /shop/images/, /shop/css/ … if they are not from Turkey).

If that so, the Firewall rule should be like this:

or with “contains”

Or just full URL?:

1 Like

I do not know how to thank you
you are wonderful, thank you very much :smiling_face_with_three_hearts:

1 Like

I am happy to assist you and glad you have found a solution for your case :wink:

1 Like

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