# Allowed Domains

Allowed Domains let you restrict which domains can use your API key, adding an extra layer of security when integrating JustaName SDKs directly in frontend applications.

### Setting Up Allowed Domains

1. Navigate to the **API Keys** section in your dashboard
2. Locate the API key you want to configure
3. Click the **three dots menu** (⋮) next to the key
4. Select **Add Domain** and enter your domain

### Wildcard Support

You can use wildcard patterns to allow multiple subdomains at once. For example:

* `*.justaname.id` — Allows all subdomains of justaname.id (e.g., `app.justaname.id`, `dev.justaname.id`, `staging.justaname.id`)
* `*.example.com` — Allows all subdomains of example.com

### When to Use Allowed Domains

**Recommended:** Configure allowed domains whenever you're using JustaName SDKs directly in frontend applications. Since frontend code is publicly accessible, restricting your API key to specific domains prevents unauthorized usage from other origins.


---

# 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://docs.justaname.id/advanced/allowed-domains.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.
