定制 risecommerce/searchsanitizer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

risecommerce/searchsanitizer

最新稳定版本:2.0.0

Composer 安装命令:

composer require risecommerce/searchsanitizer

包简介

Free For Search Query

README 文档

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

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2025-08-26