Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.91 KB

BLOCKING.md

File metadata and controls

49 lines (28 loc) · 1.91 KB

Blocking

This guide will show how to setup blocking. This particular function supports blocking by

This is useful in the cases where you want to block access for users coming from specific countries or certain IPs or IP ranges.

To enable Blocking, go to:

Magento admin > Stores > Configuration > Advanced > System > Full Page Cache > Fastly Configuration

Under the Blocking tab, you will see a screen like this.

Blocking main screen UI

Configuring Blocking

Blocking modes

First thing to decide is how you want to block traffic. Two modes are available

  • Blocklist: blocks all access for users from selected countries/ACLs
  • Allowlist: block all access EXCEPT for users from selected countries/ACLs (Available in 1.2.70+)

Blocklist is the default mode.

Country/ACL selection

You can select to block by list of countries and/or ACLs. Multiple selections are possible if you hold the Control key when selecting a list of countries. If you don't see any ACL listed in the selection box you will need to create one.

Enable Blocking

To enable Blocking click the Enable/Disable button and follow the directions.

Changing blocking config

After any change to the country list or ACL list you need to click the Update Blocking Config button to push the config change.

If you decide to switch blocking modes you have to save the config before clicking Update Blocking Config.

Turning off Blocking

Once you are ready to go live you will want to turn off Blocking. This can be achieved by clicking the Enable/Disable button then clicking the Upload button.