Download the PHP package hryvinskyi/magento2-bot-verification-pack without Composer

On this page you can find all versions of the php package hryvinskyi/magento2-bot-verification-pack. 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 magento2-bot-verification-pack

Magento 2 Bot Verification Pack

Installs Bot Verification together with its Google and Bing crawlers. The module catches requests that call themselves Googlebot or bingbot but come from an address Google or Bing does not publish, and once Refuse impostors is on, it answers them with a 403 before Magento routes them.

This is a metapackage. It holds no code and only requires the packages below, each at ^1.0.

Package Module Adds
hryvinskyi/magento2-bot-verification Hryvinskyi_BotVerification The check, the refusal, the address lists and their refresh, the admin settings and the CLI commands
hryvinskyi/magento2-bot-verification-google Hryvinskyi_BotVerificationGoogle Google's crawlers and fetchers and their five address lists
hryvinskyi/magento2-bot-verification-bing Hryvinskyi_BotVerificationBing bingbot and its address list

Why Cloudflare is not included

hryvinskyi/magento2-bot-verification-cloudflare declares Cloudflare's ranges as trusted edge servers, which is right only for a shop behind Cloudflare. On any other shop, a request from those ranges (a Cloudflare Worker, for instance) would be taken for an edge server, and the visitor address the Worker writes into X-Forwarded-For would be believed. That lets an impostor through. It never refuses a real crawler.

Installation

Behind Cloudflare, add its module as well:

Magento leaves a new cache type disabled until it is enabled by hand. Without cache:enable bot_verification, every request that claims a crawler reads the lists from the database, and bot-verification:status exits non-zero.

Refuse impostors is off by default. Before you turn it on, open Stores › Configuration › Hryvinskyi › Bot Verification and check that This request as the shop sees it shows your own public address. If it shows a proxy's address, that proxy is missing from the trusted proxies, and every crawler behind it would be refused.

Configuration, the command line, the performance report and the limits are described in the core package's README.

Requirements

PHP 8.1 or later. Verified on Magento 2.4.6 with PHP 8.1 and Magento 2.4.9-beta1 with PHP 8.4.

License

MIT


All versions of magento2-bot-verification-pack with dependencies

PHP Build Version
Package Version
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 hryvinskyi/magento2-bot-verification-pack contains the following files

Loading the files please wait ...