Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 5bce7ee

Browse files
author
Lori Krell
committed
Add note about added condition
1 parent 9e8ee58 commit 5bce7ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guides/v2.0/cloud/configure/cloud-vcl-custom-snippets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ You may want to create a whitelist of IPs to allow accessing your Magento Admin
219219

220220
Of note for this snippet, you want to set the priority to 5 to immediately run and check for whitelisted IPs. This priority runs the snippet immediately and before any of the uploaded and default Magento VCL snippets (magentomodule) that have a priority of 50. The name for the Edge ACL is also `whitelist`. If the domain matches the dictionary, it is allowed access to a path of `/admin`. If you changed your Magento Admin path, use that value in this code example.
221221

222+
In the code sample, the condition `!req.http.Fastly-FF` is important when using Origin Shielding.
223+
222224
* Name: `whitelist_admin`
223225
* Type: `recv`, puts the code in the subroutine vcl_recv
224226
* Priority: 5

0 commit comments

Comments
 (0)