Download the PHP package flancer32/mage2_ext_bot_sess without Composer

On this page you can find all versions of the php package flancer32/mage2_ext_bot_sess. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mage2_ext_bot_sess

Magento2: prevent session creation for search engines bots/crawlers and clean up expired sessions for humans

There is a problem with search engines bots and crawlers in Magento - new session is created for each request from the bots. So, there are a lot of "dead" sessions in sessions storage when any bot scans Magento pages - each page request creates a new session. This module prevents session creation for search engines bots and crawlers.

Another problem is that Magento does not clean up user's expired sessions if sessions are stored in DB. This module does it.

Configuration

Go to Stores / Configuration / General / Web / Bots Sessions Settings:

Prevent the Sessions Creation

This activity is independent of session storage (redis, db, files, ...) and available immediately after installation. Magento will not create new session if User-Agent HTTP header of the visitor will be filtered with Bots Signatures configuration option.

Sessions Cleanup

Users sessions can be stored in Redis, in DB or as files.

This module cleans up only sessions saved in DB or filesystem.

DB Sessions

Magento saves own sessions in DB (./app/etc/env.php):

Console command to clean up bot's existing sessions & user's expired sessions from DB:

Filesystem Sessions

Magento saves own sessions in filesystem (./app/etc/env.php):

PHP garbage collector cleans up the sessions (see session.gc_maxlifetime). Magento in this mode cannot control sessions lifetime. Use this route to clean up files sessions for inactive users: http://your.shop.com/fl32botsess/clean/files and this template to create shell-script for cron.

This is bad solution for bad practice. Don't use files for Magento sessions at all.

Logging

See logs for module's activities in MAGENTO_ROOT/var/log/fl32.botsess.log.

User-Agents Analysis

If Magento saves sessions in DB then you can get list of user agents for active sessions after CLI cleanup:

So, 2439: Re-re Studio (+http://2re.site/) means that user agent named Re-re Studio (+http://2re.site/) was used in 2439 saved sessions.

Install

Uninstall

You need an authentication keys for https://repo.magento.com/ to uninstall any Magento 2 module. Go to your Magento account, section (My Profile / Marketplace / Access Keys) and generate pair of keys to connect to Magento 2 repository. Then place composer authentication file auth.json besides your composer.json as described here and put your authentication keys for https://repo.magento.com/ into the authentication file:

Then run these commands to completely uninstall Flancer32_BotSess module:

Be patient, uninstall process (bin/magento module:uninstall ...) takes about 2-4 minutes. Remove auth.json file at the end:


All versions of mage2_ext_bot_sess with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package flancer32/mage2_ext_bot_sess contains the following files

Loading the files please wait ....