> For the complete documentation index, see [llms.txt](https://docs.tronsocket.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tronsocket.com/auth-token/security.md).

# Security

If you are accessing our TronSocket service from the backend, yes, there is no problem. However, if you are accessing from your frontend application, I think it is useful to make some security restrictions. We have added 3 security options, if you do not enter any of these values, it means that it will accept all requests.

However, token security options are only available in our paid packages.

Let's look at the token security restrictions one by one.

### IP

IP throttling checks requests to your server and accepts all requests if the IP list is empty. However, if you enter any value, it will only accept requests from the IP addresses you enter.

### Domain

Domain throttling checks requests to your server and accepts all requests if the domain list is empty. However, if you enter any value, it will only accept requests from the domain names you enter.

### Event

Unlike the first two constraints, the Event constraint does not work directly in the connection process, but in the “subscribe”, i.e. “on” method process. If you only want to listen to specific events for your tokens, you can add a restriction for that too.

### Example

<figure><img src="/files/tdsO5EGLE8lUNH8nhOXu" alt=""><figcaption></figcaption></figure>


---

# 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://docs.tronsocket.com/auth-token/security.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.
