Subscribe

How to install sw-nginx-module-testcookie in CentOS/RHEL 9 (x86_64)

NGINX testcookie robot mitigation module

License: BSD Vendor: GetPageSpeed LLC https://github.com/dvershinin/testcookie-nginx-module
Important: The Plesk control panel must be installed on your server before using this repository.

Install

# The Plesk control panel must be installed on your server.
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --enable getpagespeed-extras-plesk
sudo dnf -y install sw-nginx-module-testcookie

Description

Simple robot mitigation module using cookie based challenge/response technique. Not supported any more. Challenge cookies can be set using different methods: * "Set-Cookie" + 302/307 HTTP Location redirect * "Set-Cookie" + HTML meta refresh redirect * Custom template, JavaScript can be used here. To prevent automatic parsing, challenge cookie value can be encrypted with AES-128 in CBC mode using custom/random key and iv, and then decrypted at client side with JavaScript. After installation, enable this module by running: plesk sbin nginx_modules_ctl --enable testcookie

RPMs