> For the complete documentation index, see [llms.txt](https://docs.onum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onum.com/pipelines/actions/transformation/field-transformation/field-transformation-operations/networking/fang-urls.md).

# Fang URLs

## Description

This operation takes a 'defanged' URL and 'fangs' it, meaning, it removes the alterations that render it useless so that it can be used again.

***

## Data types

These are the input/output expected data types for this operation:

### Input data

`String` - URLs you want to fang.

### Output data

`String` - Valid URLs.

***

## Parameters

These are the parameters you need to configure to use this operation (mandatory parameters are marked with a \*):

<details>

<summary>Escape Dots<mark style="color:red;"><strong>*</strong></mark></summary>

Set this parameter to **true** if you want to restore `.` in the URL domains. For example, `example[.]com` becomes `example.com`.

</details>

<details>

<summary>Escape HTTP<mark style="color:red;"><strong>*</strong></mark></summary>

Set this parameter to **true** if you want to restore `hxxp` or `hxxps` and make them `http` or `https`, respectively.

</details>

<details>

<summary>Escape ://<mark style="color:red;"><strong>*</strong></mark></summary>

Set this parameter to **true** if you want to restore the `://` separator in your URLs.

</details>

***

## Example

Suppose you want to **fang** a series of events that represent **URLs**:

1. In your Pipeline, open the required [Action](/pipelines/actions.md) configuration and select the input **Field**.
2. In the **Operation** field, choose **Fang URL**.
3. Set **Escape Dots** to **true**.
4. Set **Escape HTTP** to **true**.
5. Set **Escape ://\*** to **false**.
6. Give your **Output field** a name and click **Save**. The URLs in your input field will be made valid. For example:

```
Input data - "hxxps://example[.]com"

Escape Dots - true

Escape HTTP - true

Escape ://* - false

Output data - "https://example.com"
```

{% hint style="info" %}
You can try out operations with specific values using the **Input** field above the operation. You can enter the value in the example above and check the result in the **Output** field.
{% endhint %}
