Back to Top

Guide for Magento 2 Indecent Content Checker

Updated 5 January 2024

Magento 2 Indecent Content Checker Extension allows the admin to identify indecent content images from their store. This can include inappropriate, violent, or otherwise offensive.

Indecent content checkers typically work by scanning images that are associated with indecent content.

Magento 2 Indecent Content Checker can be used to scan all of the images on your store, including products, categories, CMS pages, and Magento 2 Blog post images.

They may also use machine learning algorithms to identify patterns of indecent content that use a combination of NLP and ML to identify potential indecent content.

NLP is used to identify keywords and phrases that are associated with indecent content.

Searching for an experienced
Magento 2 Company ?
Find out More

ML is used to identify indecent content that does not contain explicit keywords.


  • Uses a machine learning model to detect indecent images with high accuracy.
  • Indecent images are detected and prevented from being uploaded immediately.
  • Alert notifications are shown when an indecent image is detected.
  • The module supports jpg, jpeg, png, and gif image types.
  • Admins can set the threshold for blocking content.
  • The module uses the NSFW JS library to scan images for explicit content.
  • The module can also identify explicit content in sample uploads.

Note- You need to have Node js already installed on your server to use our IndecentContentChecker module for Magento 2.


The installation is quite simple just like the standard Magento 2 extensions.

#Download Module

Firstly, you need to log in to the Webkul Store, go to My Account>My Purchased Products section, verify, and then download and extract the contents of this zip folder on the system.

#Upload Folder

Once the module zip extracts, follow path src>app and then copy the app folder into the Magento 2 root directory on the server as shown below:

Note- You need to have Node js already installed on your server to use our IndecentContentChecker module for Magento 2.


#3 Run Commands

You need to run the following commands:

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

php bin/magento indexer:reindex

php bin/magento cache:flush

Server Settings

Environment Setup Guide:
Note: Make sure Node is already installed on your server.

First, you have to install the npm on your server so run the command-

sudo apt-get update

To Install Npm packages follow these steps –

via composer – move package.json from vendor/webkul/magento2-indecent-content-checker/ to magento root directory and run the below command.

sudo apt-get install npm

via zip
move package.json from magento2-indecent-content-checker/ to Magento root directory and run the below command.

sudo apt-get install npm

Language Translation

For translating the module language, navigate through src/app/code/Webkul/IndecentContentChecker/i18n/and edit the en_US.csv file. Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.


Now, upload it to the path src/app/code/Webkul/IndecentContentChecker/i18n/ a where the installation of Magento 2 is on the server. The module was translated into the Arabic Language. It supports both RTL and LTR languages.

The user can edit the CSV like the image below.


If you’re looking to create a custom e-commerce website, you can hire Magento developers who can help you build a powerful and scalable online store.

Admin Initial Configuration

After the successful installation of the extension, the admin will configure the extension. To do so, navigate through Stores->Configuration->Indecent Content Checker.


Here, the admin will configure the Magneto 2 Indecent Content Checker.

General settings

Admin can enable/disable the module from the backend.

Threshold– Enter threshold image probability score.
( If the image contains more explicit content, the probability score will be higher, and vice versa.)

Server Settings

Admin has the option to enable the local HTTPS server.

Enter the Hostname and port number of your server.

Save the configuration.

Also, if you want to create an image gallery for your Magento 2 store then check the Magento 2 Image Gallery extension.

Check the Indecent Content image on the Product page

Once the module is active, The admin can use it to check all images that are uploaded to product pages.

This module uses the NSFW JS library to scan images for explicit content.


If the image they have uploaded is indecent the alert popup informs the admin that this image contains explicit content.


So the admin can change the image for upload.

This module helps identify explicit content for downloadable products and sample uploads.

It is useful for preventing customers from downloading or viewing inappropriate content.

You can also optimize the images and refine your website page speed using the Magento 2 Page Speed Optimization extension.

Identify the Indecent Image on the Category Page

The module can also be used to identify indecent images on category pages. To do this, admins can go to the Catalog menu and select Categories.

Then, they can select the category in which they want to upload the image.

If any of the images are indecent, Popup will show this is invalid.


Identify the Indecent image on the Page Builder images upload

Identify explicit images that are uploaded using the Page Builder. This helps to ensure that your page templates do not contain inappropriate content.


Identify Explicit content – Header Logo and Shortcut Icon Upload.

Once the admin has uploaded their files, the module will scan them for explicit content. If the files contain explicit content, the module will flag them as such.

The Admin can then review the flagged files and decide whether to remove them or keep them.


That is all about the Magento 2 Indecent Content Checker extension. If you have any queries regarding the plugin, please contact us at [email protected]

You can also check our complete Magento 2 extensions.

Current Product Version - 5.0.0

Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content