This article pertains to the Optimizely Content Management System (CMS) 12/Optimizely Customized Commerce 14 versions. For CMS 11/Customized Commerce 13, see [this article](🔗).\_
## Configuring restrictions
Customers may want to add security to their solution by restricting access to environments or views, such as locking the Integration and Preproduction environments, or to specific interfaces such as the edit or admin view. Access is limited based on a particular or range of IP addresses. See the following Microsoft documentation on [how to restrict client IP address.](🔗) You need to make modifications to get the correct IP address from the CDN.
The following code snippet blocks all traffic **except** GET requests:
If you want to block **all** traffic, including GET requests, remove this line from the code snippet:
Be aware that if you use an IP allowlist, legitimate services and integrations may not function as expected, such as example monitoring tools and validation of site responses during deployments.
See also: [Sample Code](🔗)