# Protecting Content Access with Signed URLs

To prevent unauthorized usage of your content links on external websites or applications, you can enforce access through Signed URLs.

A Signed URL consists of a standard URL augmented with enforced query string parameters. The URL will only be accessible if the specified conditions are met and the URL has not expired.

# Generating Signed URLs Using SDKs

We provide SDKs for generating Signed URLs in popular programming languages:

# Example Code for Creating Signed URLs

    # Enforceable Conditions for Signed URLs

    # x_ark_user_agent

    Specifies that the request must be made with the User Agent defined when the signature was created.

    # x_ark_path_prefix

    Allows the signature to be used with this Signed URL and other Signed URLs that have the same path prefix. This is often used to create a single Signed URL that grants access to all URLs within a specified directory.

    # x_ark_geo_allow

    Specifies that the URL can only be accessed from the specified countries. Separate multiple countries with a comma.

    # x_ark_geo_block

    Specifies that the URL cannot be accessed from the specified countries. Separate multiple countries with a comma.