定制 orangecat/checkip 二次开发

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

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

orangecat/checkip

最新稳定版本:1.0.7

Composer 安装命令:

composer require orangecat/checkip

包简介

Prevent Bots and IPs reported from creating a session

README 文档

README

Block sessions for Bots and IPs that have been reported

This module has been developed for Magento => 2.4.6

This module allows you to download form "iplists.firehol.org" a list of reported IP addresses and compare the client IP addresses with this list. If there is a match, we can pause the request and/or reject it, preventing the creation of a PHP session.

The list will be downloaded every certain time established by a cron job.

From the Magento OS administration panel, you can view the list of IPs with which there has been a match.

The list of matches is saved in TXT format in a daily log that is deleted every few days.

Additionally, you can also check for crawler visits. For this, we use the "Crawler-Detect" package (https://github.com/JayBizzle/Crawler-Detect/) as a dependency.

You also have the option to enable/disable IP or bot protection via API and receive email notifications when the API is accessed. This is especially usefu:

  • GET /V1/checkip/enableip?enabled=true:false
  • GET /V1/checkip/enablebot?enabled=true:false
  • GET /V1/checkip/enableall?enabled=true:false

Installation

The extension must be installed via composer. To proceed, run these commands in your terminal:

composer require orangecat/checkip
bin/magento setup:upgrade

Configuration IP

Stores > Configuration > Security > Check IP

  • Enable IP Check
  • Cron settings
  • IPs blacklist file download URL
  • Mode (Block / Pause)
  • Log retention days
  • Aditional Blacklist
  • Whitelist

Configuration Bot

Stores > Configuration > Security > Check IP

  • Enable Bot Check
  • Mode (Block / Pause)
  • Log retention days
  • Aditional Blacklist
  • Whitelist

Check IP logs

System > IP Blacklist Log

Check Bot logs

System > Bot Blacklist Log

Log IP folder

var/ipblacklist

Log Bot folder

var/botblacklist

Configuration API

Stores > Configuration > Security > Check IP

  • Only Email Notification?
  • Emails Notification
  • Enable API IP
  • Enable API BOT
  • Clear Full Page Cache after status change
  • Whitelist

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 1
  • 开发语言: Less

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2025-04-24