fballiano/openmage-cloudflare-turnstile

0.5.0 2024-12-10 13:29 UTC

This package is auto-updated.

Last update: 2024-12-10 13:30:40 UTC


README

Turnstile is Cloudflare's CAPTCHA alternative, read more at https://developers.cloudflare.com/turnstile

Features

  • Super easy and non-intrusive implementation, you don't have to modify and block or phtml file
  • Support for customer registration, customer forgot password, newsletter subscribe, checkout (guest/register), product review, wishlist share
  • Support for admin login and forgot password
  • Easy customization (for theme related changes to the supported forms) via configurable CSS selectors
  • Lazy load of Cloudflare's javascript, Google PageSpeed will appreciate
  • Compatible with Magento 1.9, OpenMage 19 and OpenMage 20 on PHP >= 7.4

How to use it

  • Install via composer (composer require fballiano/openmage-cloudflare-turnstile), modman (modman clone https://github.com/fballiano/openmage-cloudflare-turnstile) or any other way you like
  • Configure your Turnstile SITE_KEY/SECRET_KEY in "system -> Configuration -> Admin -> Cloudflare Turnstile"
  • If you want to test the module you can use development keys available at https://developers.cloudflare.com/turnstile/reference/testing

What to do if Cloudflare is down and you can't access your store

Let's be clear, this case will almost never happen, if it happens half of the world will be down (and probably also other parts of your website) so you can just wait a couple of hours and everything will be back on line, but if you need to, then...

Disable the extension completely, you can do it in the database, in the core_config_data table, look for records identified by path='admin/fballiano_turnstile/enable', or simply run this query:

UPDATE core_config_data SET value=0 WHERE path='admin/fballiano_turnstile/enable'

Remember that this query will work only if you don't have a "table prefix" in your database, otherwise the name of the core_config_data table will be different in your case.

After modifying the DB, clear magento cache (either deliting everything from the var/cache folder, or purging your redis-cache-database or running something like n98-magerun.phar cache:flush).

Backup!!!

Backup your database and files before launching the cleaning process!!! This module is provided "as is" and I'll not be responsible for any data damage.

Support

If you have any issues with this extension, open an issue on GitHub.

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Fabrizio Balliano
http://fabrizioballiano.com
@fballiano

Licence

OSL - Open Software Licence 3.0

Copyright

(c) Fabrizio Balliano