> For the complete documentation index, see [llms.txt](https://guide.bocto.octopeeps.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.bocto.octopeeps.com/plugins/guard/guard-features/promotional-text-and-qr-codes-in-images.md).

# 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="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FdKZ4Tim2hoOAKDKIolbL%2Fimage.png?alt=media&amp;token=b2ad2735-fbca-4115-b51e-791692fe8f50" 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="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FwZ7XilZemziDKDCJOSH9%2Fimage.png?alt=media&amp;token=f1da513e-44f5-44c0-ac2c-8984df562219" alt=""><figcaption></figcaption></figure>

Depending on your [Guard Settings](https://guide.bocto.octopeeps.com/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](https://guide.bocto.octopeeps.com/getting-started/setup-on-server.md):

<figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FxFUX55wCEBmkrjqfD6q2%2Fimage.png?alt=media&amp;token=8416529f-dbe5-47a1-9a51-e38d8b797903" 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="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FpKo13E8SskHaVrui60VD%2FScreen%20Shot%202025-11-10%20at%2019.58.51.png?alt=media&amp;token=12b3b6cd-92ae-4aa8-ac54-6d90cb95afc5" 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.
