Try the suggestions in this Community Tip to help you fix “Access denied (Error: 1020)” when visiting a site protected by Cloudflare.
While visiting a site protected by Cloudflare, error 1020 “Access denied (Error: 1020)” indicates you’ve violated a Firewall Rule. When this happens, you’ll see the error “Access Denied (Error: 1020)” and your request was blocked by the filter based Firewall rule on the site. If you’re the site owner, you can find the requests that was blocked by the Firewall on the Firewall page under the Events menu.
Quick Fix Ideas
If you are visiting the site, contact the site owner and let them know that you received the Access denied error and ask them to check their Firewall Rules. Only the owner of the site you’re visiting can tell you why you are unable to access the site. Contacting Support or posting here will not result in an answer.
If you are the site owner and you want to isolate what rule is being violated, first review your Firewall Rules. Next, turn off the firewall rules to see if the challenge goes away. Turn them all off, check, and if the error goes away, begin to turn them on one at a time.
Alternatively, search for the RAYID in the Firewall Events Log to determine which rule is being violated.
You can verify the issue is caused by your Firewall if you disable Clouflare and then visit the site. See How do I disable Cloudflare?
If you only want to protect a portion of your site or isolate what rule is being violated, turn off WAF for the entire domain and use Page Rules to enable WAF for specific URLs.
If you encounter the error 1020, you’re violating a firewall rule the site owner has put in place, the error has nothing to do with the product Cloudflare Access.
If You Need More Help
This community of other Cloudflare users may be able to assist you, if not, login to Cloudflare and then contact Cloudflare Support. When you contact support, make sure to include as much of this information as possible: the specific error message you are seeing, the domain this is happening on, screen shot of the error, steps to reproduce the error, and please indicate which of the Quick Fix Ideas you’ve tried in order to help Customer Support help you.
Expert Comments Appreciated
This Community Tip will remain open for input from Community experts and those familiar with this issue. We really appreciate comments like: “What are the three things to always try”, or “Do this first” or “In my experience”.
This is a Cloudflare Community Tip, to review other tips, click here.