# URL signature

To prevent URL tampering and protect your token, every Cloudimage URL can be secured with an SHA-1 HMAC signature.

Please be aware that when the URL signature is activated for your token, all Cloudimage URLs which are not signed properly will cease to work.

The signature is calculated as follows:

```
Signature = sha1('Salt' + 'URI')
where URI = original_image_url?operations&filters
```

The syntax to process an image is:

//<mark style="color:blue;">**token**</mark>.cloudimg.io/original\_image\_url?<mark style="color:orange;">**operations**</mark>&<mark style="color:green;">**filters**</mark>**&**<mark style="color:orange;">**ci\_sign=Signature**</mark>

Because the **Salt** is a shared secret between you and Cloudimage, only you will be able to calculate the signature of your images.

## Activation <a href="#od_316500b3" id="od_316500b3"></a>

Before activating the URL signature, please make sure that all Cloudimage URLs contain the proper signature.

To activate this feature, you need to navigate to *Image Settings / Security* and activate *URL security* toggle.

<figure><img src="/files/0SslkHFvcMYFzkdu53kR" alt=""><figcaption></figcaption></figure>

In the *Add Security* modal, you need to choose *URL Signature* and place a string you will be using as salt when generating the URL signature.


---

# 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.cloudimage.io/setup/security/token-security/url-signature.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.
