Community Tip - Access was denied Error code 1020

Error
Try the suggestions in this Community Tip to help you fix “Access was denied Error code 1020” when visiting a site protected by Cloudflare.

Background
While visiting a site protected by Cloudflare, you may see an error indicating you do not have access to a given site and you are presented the error:

The site owner may have set restrictions that prevent you from accessing the site. Contact the site owner for access or try loading the page again.

The access policies of a site define which visits are allowed. Your current visit is not allowed according to those policies. Only the site owner can change site access policies.

Biz Upsell

Quick Fix Ideas

  1. 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.

  2. 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. After you assess the cause of the block, either update the Firewall Rule or allow the visitor’s IP address in IP Access Rules .

  3. Alternatively, search for the RAYID in the Firewall Events Log to determine which rule is being violated.

  4. You can verify the issue is caused by your Firewall if you disable Cloudflare and then visit the site. See How do I disable Cloudflare?

  5. 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.

  6. 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 Cloudflare Access.

Lite Reading
https://support.cloudflare.com/hc/articles/360029779472-Troubleshooting-Cloudflare-1XXX-errors#error1020

Background Resources
YouTube
Community
Google

This is a Cloudflare Community Tip, to review other tips, click here.

Çevirmek…traduzir…翻译…traducir…Traduire…Übersetzen…:greyg: Translate this Tip

FXCTAD 032522

10 Likes