risecommerce/searchsanitizer

Free For Search Query

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

Type:magento2-module

pkg:composer/risecommerce/searchsanitizer

2.0.0 2025-08-27 06:42 UTC

This package is auto-updated.

Last update: 2025-09-27 06:53:09 UTC


README

Overview Risecommerce Search Sanitizer helps secure your Magento store by preventing harmful or unwanted search terms from being saved. It blocks SQL keywords, HTML/JS code, and any custom patterns you define. Instead of saving unsafe terms, customers see a warning message on the search page.

Features

  1. Enable/Disable Control – Turn the sanitizer on or off from Admin.
  2. Custom Ignore List – Define comma-separated words or patterns that you want to block (e.g., select,drop,delete,script).
  3. Custom Warning Message – Show a user-friendly message when blocked terms are entered.
  4. Admin Configuration – Manage all settings from Stores → Configuration → Risecommerce → Search Sanitizer.
  5. Improved Security – Stops malicious inputs from being stored in search query logs.

Use Case

  • Protects your database from SQL injections attempted via search.
  • Prevents saving of unwanted spam keywords or HTML.
  • Gives customers a clear warning instead of a technical error.

For more details about the extension, visit the Risecommerce SearchSanitizer Extension for Magento 2.

If you're looking to enhance your Magento store further, consider hiring a dedicated Magento developer.

For support or inquiries, please visit our contact page.

Support

  • Magento versions: 2.3.x, 2.4.x

How to Install the Extension

Method I: Manual Installation

  1. Download the archive file.
  2. Unzip the file.
  3. Create a folder at [Magento_Root]/app/code/Risecommerce/SearchSanitizer.
  4. Move the unzipped files to the directory [Magento_Root]/app/code/Risecommerce/SearchSanitizer.

Method II: Using Composer

Run the following command:

composer require risecommerce/searchsanitizer

#Enable Extension:

  • php bin/magento module:enable Risecommerce_SearchSanitizer
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy
  • php bin/magento cache:flush

#Disable Extension:

  • php bin/magento module:disable Risecommerce_SearchSanitizer
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy
  • php bin/magento cache:flush