# Content Moderation

## Validate URL

The `validateUrls()` function takes an array of `urls` as input. It returns a success response if the input passes validation and throws an error otherwise. It ensures that the URLs conform to the pre-defined list set in ASC console.&#x20;

Here's an explanation of the function parameter:

* `urls`: An array of URLs to be validated

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/1884adcfb393ec60d61fd4d883221bb2>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/3feb2b3be1e03cfc822193d92f7f47af>" %}
{% endtab %}
{% endtabs %}

## Validate Text

The `validateTexts()` function takes an array of `texts` as input. It returns a success response if the input passes validation and throws an error otherwise. It ensures that the text does not contain any of the pre-defined blocked words set in the ASC console.

Here's an explanation of the function parameter:

* `texts`: An array of texts to be validated

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/87e2322f08c00e0f1fd9c3f8083682f5>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/d6757c84f4546bd8e2333f44f7ff1fec>" %}
{% endtab %}
{% endtabs %}


---

# 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.social.plus/social-plus-sdk/core-concepts/content-moderation.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.
