> For the complete documentation index, see [llms.txt](https://support.goodaccess.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.goodaccess.com/configuration-guides/ip-whitelisting/nginx/url.md).

# URL

## Whitelist an IP in NGINX for a URL

If you want to whitelist an IP for just one URL (e.g. /accounts/login) then add the *allow* directive below in the *location* block of that URL.

```
location /accounts/login {
   allow 45.43.23.21;
   deny all;
}
```

## Restart NGINX

Run the following command to check the syntax of your updated config file.

```
sudo nginx -t
```

If there are no errors, run the following command to restart the NGINX server.

```
sudo systemctl restart nginx
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/nginx/url.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.
