# Magento

{% hint style="info" %}
**Prerequisites:**

* Ensure that you are running the latest version of the Fastly CDN module for Magento 2. See [Upgrade the Fastly Module](https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/cdn/setup-fastly/fastly-configuration.html?lang=en#upgrade-the-fastly-module).
* Verify the environment configuration for the Fastly service. See [Test Fastly caching](https://experienceleague.adobe.com/docs/commerce-cloud-service/user-guide/cdn/setup-fastly/fastly-configuration.html?lang=en#test-fastly-caching).
* You must have **Admin credentials** to access the Magento Cloud Staging and Production environments.
* You will also need a list of client IP addresses to include on the allow list
  {% endhint %}

## **Step 1​**

Login to the Magento Admin interface, click **Stores** > **Settings** > **Configuration** > **Advanced** > **System**.

## Step 2

Expand **Full Page Cache** > **Fastly Configuration** > **Edge ACL**.

## Step 3

Create the ACL container:

* Click **Add ACL**.
* On the **ACL Container** page, enter a **ACL name**—`allowlist`.
* Select **Activate after the change** to make your changes to the version of the Fastly service configuration that you are editing.
* Click **Upload** to attach the ACL to your Fastly service configuration.

## Step 4

Add the list of IP addresses allowed to access the Magento Admin UI:

* Click the Settings icon for the `allowlist` ACL.
* Add and save the **IP Value** for **each client** IP address.
* Click **Cancel** to return to the system configuration page.

## Step 5

Click **Save Config**.

Refresh the cache according to the notification at the top of the page.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.goodaccess.com/configuration-guides/ip-whitelisting/magento.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
