Skip to main content

FormatURL

This Script is part of the Common Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 5.5.0 and later.

Strips, unquotes and unescapes URLs. If the URL is a Proofpoint or ATP URL, extracts its redirect URL.

Script Data#


NameDescription
Script Typepython3
Tagsindicator-format
Cortex XSOAR Version5.5.0

Inputs#


Argument NameDescription
inputA comma-separated list of URL inputs.

Outputs#


PathDescriptionType
URLURL formatted.String

Script Example#

!FormatURL input=https://urldefense.proofpoint.com/v2/url?u=https-3A__example.com_something.html

Context Example#

{
"URL": [
"https://example.com/something.html"
]
}

Human Readable Output#

https://example.com/something.html