PHPackages                             friends-of-hyva/magento2-crawler-session - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. friends-of-hyva/magento2-crawler-session

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

friends-of-hyva/magento2-crawler-session
========================================

Prevent crawlers from creating a session

1.0.1(2y ago)155.8k↓50%2MITPHPPHP ^8.1

Since Mar 15Pushed 2y ago2 watchersCompare

[ Source](https://github.com/friends-of-hyva/magento2-crawler-session)[ Packagist](https://packagist.org/packages/friends-of-hyva/magento2-crawler-session)[ Docs](https://github.com/friends-of-hyva/magento2-crawler-session)[ RSS](/packages/friends-of-hyva-magento2-crawler-session/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Magento 2 - Crawler Session
===========================

[](#magento-2---crawler-session)

Prevent crawlers from creating a session!
-----------------------------------------

[](#prevent-crawlers-from-creating-a-session)

It's insane how many requests are coming from crawlers &amp; 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:

Installation
------------

[](#installation)

Install the package via composer:

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

php bin/magento setup:upgrade
```

Usage
=====

[](#usage)

After installation, you need to enable the module:

```
Stores > Configuration > General > Web > Prevent Crawler Session

```

Configuration
-------------

[](#configuration)

### Enabled

[](#enabled)

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

### Additional Blacklist

[](#additional-blacklist)

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

### Whitelist

[](#whitelist)

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

### Log

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~24 days

Total

2

Last Release

770d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1905417db5fbd31a61553b29bd441fdc66945da7cfb14f1b20a72275c68184e8?d=identicon)[vinai](/maintainers/vinai)

![](https://www.gravatar.com/avatar/9153207646a2b8a1d57ade7c92fa6d88a826ccb115ff60ca8776b32b877245e1?d=identicon)[mvenghaus](/maintainers/mvenghaus)

---

Top Contributors

[![mvenghaus](https://avatars.githubusercontent.com/u/6408081?v=4)](https://github.com/mvenghaus "mvenghaus (3 commits)")

---

Tags

magentocrawlersessionbotblockdisablemagento2prevent

### Embed Badge

![Health badge](/badges/friends-of-hyva-magento2-crawler-session/health.svg)

```
[![Health](https://phpackages.com/badges/friends-of-hyva-magento2-crawler-session/health.svg)](https://phpackages.com/packages/friends-of-hyva-magento2-crawler-session)
```

###  Alternatives

[jaybizzle/laravel-crawler-detect

A Laravel package to detect web crawlers via the user agent

3232.6M17](/packages/jaybizzle-laravel-crawler-detect)[opengento/module-gdpr

Gdpr Compliance Module for Magento 2

14481.5k](/packages/opengento-module-gdpr)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69344.4k](/packages/run-as-root-magento2-prometheus-exporter)[baldwin/magento2-module-less-js-compiler

Allows Magento 2 to compile less files using the less nodejs compiler

2348.6k](/packages/baldwin-magento2-module-less-js-compiler)[opengento/module-saleable

This extension allows to set if a product is saleable and can show its price by scope and customer group.

136.9k](/packages/opengento-module-saleable)[maisondunet/module-gtm-cookie-consent

A simple cookie consent module for magento. It relies on new GTM consent functionality.

134.5k](/packages/maisondunet-module-gtm-cookie-consent)

PHPackages © 2026

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