htmlwebfan/cognito

A package of tools used for revealing elements to humans and but keeping them hidden from bots.

v1.0.1 2015-07-12 13:35 UTC

This package is not auto-updated.

Last update: 2024-05-11 15:45:45 UTC


README

Latest Version Software License

This package allows you to use php to generate javascript code that adds email addresses to a page. As a result you do not have to hardcode email addresses into the page. since the address is not in the source code of the page, email scrapers and harvesters are avoided for the most part. The package is not meant to be unbeatable by a bot. It is simply an effort to make it too difficult to be worth the attempt.

Install

Via Composer

$ composer require htmlwebfan/cognito

Usage

$obfuscator = new EmailObfuscator(new Config);
echo $ob->generateJS();

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.