定制 friends-of-hyva/magento2-crawler-session 二次开发

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

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

friends-of-hyva/magento2-crawler-session

Composer 安装命令:

composer require friends-of-hyva/magento2-crawler-session

包简介

Prevent crawlers from creating a session

README 文档

README

Prevent crawlers from creating a session!

It's insane how many requests are coming from crawlers & bots nowadays. Every request creates an unnecessary session. If you block the SEO tools via robots.txt there are still plenty of search engines left. 100 requests per minute is not unusal. This leads to a lot of sessions which could affect some limits like Redis "max_concurrency".

This module prevents the initiation of a session if a crawler is detected. The detection is based on:

https://github.com/JayBizzle/Crawler-Detect

Installation

Install the package via composer:

composer require friends-of-hyva/magento2-crawler-session

php bin/magento setup:upgrade

Usage

After installation, you need to enable the module:

Stores > Configuration > General > Web > Prevent Crawler Session

Configuration

Enabled

If enabled, the detected crawler will no longer create a session.

Additional Blacklist

If the provided list from crawlerdetect.io is not enough, you can define your own custom user agents here.

Whitelist

For situations where you need to allow a user agent that is blacklisted, you can do so here.

Log

If enabled all blocked user agents are logged to var/log/crawler-session.log. But this is only intended for temporary debugging purposes. The filesize can get big very fast!

统计信息

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

GitHub 信息

  • Stars: 16
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固