# Promotional Text and QR Codes in Images

This feature analyzes the images attached to the message using a special library and blocks the message if the image text is evaluated as spam content or if the image contains a QR code. It allows you to grant the <mark style="color:$success;">Attach Files</mark> permission in the role or channel settings without fear that users will abuse it.

## <mark style="color:$primary;">Scam Mechanics.</mark>

**Discord** algorithms have become smarter and can detect potential scam content in text more efficiently than ever. However, scammers invent new ways to bypass these algorithms. And one of such ways is to use images with text scam content. Have you ever seen messages like this? Probably, you did.&#x20;

<figure><img src="/files/EmDJ43466gwZsM63vaQj" alt=""><figcaption></figcaption></figure>

## <mark style="color:$primary;">Explanation of the Feature.</mark>

And this is where the <mark style="color:$success;">Promotional Text and QR Codes in Images</mark> feature comes into action! It detects if the attached image contains text, analyzes it, if any, if the content looks like spam, and if it does, blocks the message:

<figure><img src="/files/zpUfFBYcryW0LsAPBths" alt=""><figcaption></figcaption></figure>

Depending on your [Guard Settings](/plugins/guard/guard-settings.md), <mark style="color:purple;">**Bocto**</mark> can also post a detailed alert to the <mark style="color:yellow;">**#alerts**</mark> channel it created during the [setup on the server](/getting-started/setup-on-server.md):

<figure><img src="/files/JOlUZmWCQJsDPqJK91at" alt=""><figcaption></figcaption></figure>

Moreover, <mark style="color:purple;">**Bocto**</mark> can determine QR codes! For example, this message with the **Astery Jewelry** flyer and QR code on it will be blocked as well if the <mark style="color:$success;">Promotional Text and QR Codes in Images</mark> feature is enabled:

<figure><img src="/files/eBwGLcoN3SK8zYYmUzlg" alt=""><figcaption></figcaption></figure>

Actually, **Astery Jewelry** is absolutely legit - it is our umbrella project that you can visit using this QR code without any concerns. We put it as an example just because we have no other one.

## <mark style="color:$primary;">Image Type That This Feature Blocks.</mark>

Currently, the <mark style="color:$success;">Promotional Text and QR Codes in Images</mark> feature recognizes and blocks images with:

* Text content that can be clearly determined as scam content with money offers and contacts.
* Clearly readable, strictly aligned QR codes.


---

# 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://guide.bocto.octopeeps.com/plugins/guard/guard-features/promotional-text-and-qr-codes-in-images.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.
