PHPackages                             risecommerce/searchsanitizer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. risecommerce/searchsanitizer

ActiveMagento2-module[Search &amp; Filtering](/categories/search)

risecommerce/searchsanitizer
============================

Free For Search Query

2.0.0(10mo ago)1111GPL-3.0PHPPHP ~7.0.13|~7.1.0|~7.2.0|~7.3.0|~7.4.0|^8.0

Since Aug 26Pushed 10mo agoCompare

[ Source](https://github.com/risecommerce/SearchSanitizer)[ Packagist](https://packagist.org/packages/risecommerce/searchsanitizer)[ RSS](/packages/risecommerce-searchsanitizer/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Risecommerce SearchSanitizer Extension
======================================

[](#risecommerce-searchsanitizer-extension)

**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](https://risecommerce.com/store/magento2-searchsanitizer.html).

If you're looking to enhance your Magento store further, consider hiring a [dedicated Magento developer](https://risecommerce.com/hire-dedicated-magento-developer.html).

For support or inquiries, please visit our [contact page](https://risecommerce.com/contact).

Support
-------

[](#support)

- **Magento versions:** 2.3.x, 2.4.x

How to Install the Extension
----------------------------

[](#how-to-install-the-extension)

### Method I: Manual Installation

[](#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

[](#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

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance54

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

312d ago

Major Versions

1.0.0 → 2.0.02025-08-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/18574a66c0a5aa81778f535779ee44839446cd954c2cecb34d1d488ec462fe1e?d=identicon)[Risecommerce](/maintainers/Risecommerce)

---

Top Contributors

[![wdevamar](https://avatars.githubusercontent.com/u/94450670?v=4)](https://github.com/wdevamar "wdevamar (3 commits)")[![risecommerce](https://avatars.githubusercontent.com/u/20417583?v=4)](https://github.com/risecommerce "risecommerce (1 commits)")

---

Tags

risecommercemagento 2 searchmagento2 search issuemagento search filtermagento2 search blockmagento2 search guardrisecommerce serach

### Embed Badge

![Health badge](/badges/risecommerce-searchsanitizer/health.svg)

```
[![Health](https://phpackages.com/badges/risecommerce-searchsanitizer/health.svg)](https://phpackages.com/packages/risecommerce-searchsanitizer)
```

###  Alternatives

[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26193.1k](/packages/awesome-nova-dependent-filter)[algolia/laravel-scout-algolia-macros

A collection macros to extend Laravel Scout with more Algolia capabilities

3633.8k](/packages/algolia-laravel-scout-algolia-macros)[algolia/php-dom-parser

A simple tool to turn DOM into Algolia search friendly record objects.

181.8k](/packages/algolia-php-dom-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
