Git Product home page Git Product logo

bauboo.obfuscation-plugin's Introduction

Obfuscation Plugin

Obfuscate emails and phone numbers for spammers, but not for your human visitors.

How to Use it

Simply add the respective component onto your page and in specify the email address or phone number in the component's settings. The plugin will then automatically present bots with obfuscated data, but humans receive a nicely formatted link.

Why Should I Bother

Spammers try to crawl to internet for email addresses to send spam to. This is why you sometimes see emails written like 'mail(at)example.com'. This improves your resilience against spammers, but it is also annoying for regular, human users. This plugin solves this problem, by transforming to human readable and even linked formats as soon as we are reasonably sure that a visitor is human.

Credit

This plugin was partly inspired by SpamSpan.

License

All parts of this software are licensed under LGPL 3.0 or any later version (SPDX license indicator: LGPL-3.0-or-later). See the license files in the source code for details.

Copyright 2022 Michael Heider

bauboo.obfuscation-plugin's People

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

dheia

bauboo.obfuscation-plugin's Issues

Unobfuscation Sometimes Not Working

Describtion

Sometimes the components do not process, i.e. it looks like as if JS was disabled.

Steps to Reproduce

  1. Have to pages: A without obfuscaiton component, B with
  2. Go to page B, switch to A, switch to B
  3. obfuscaiton component on B is not working anymore, displays the unprocessed versions (as if JS was disabled)

Expected behavior

Component should be working as documented, independent of page visit history.

Version Information

  • Obfuscation plugin version: 2.1.1
  • OctoberCMS version: 3.0.51
  • Browser (version): Firefox 101.0.1 (64-bit)
  • OS (version): Ubuntu 20.04

Additional context

JS is always enabled.

There is a JS error message:

Uncaught SyntaxError: redeclaration of const a
    <anonymous> http://hhe-homepage.test/plugins/bauboo/obfuscation/assets/js/obfuscation.js:1
obfuscation.js:1:1
    <anonymous> http://hhe-homepage.test/plugins/bauboo/obfuscation/assets/js/obfuscation.js:1

Firefox automatically appends this link to the error message: [Learn More]

Script is Executed Twice

Describtion

obfuscation.js is executed twice on page load, except on the first page visit.

Note: This is not noticeable by the user and has no impact on using the plugin.

Steps to Reproduce

  1. Add a console log message inside obfuscation.js
  2. Have two pages: A without obfuscaiton component, B with
  3. Go to page B, switch to A, switch to B
  4. When visiting B the second (and subsequent) time, the message is printed twice.

Expected behavior

Script should run only once.

Version Information

  • Obfuscation plugin version: 2.1.1
  • OctoberCMS version: 3.0.51
  • Browser (version): Firefox 101.0.1 (64-bit)
  • OS (version): Ubuntu 20.04

Additional context

See also #2, where this was first discovered.

This behaviour was not observed in OctoberCMS 2.

The root cause or potential fixes are unknown.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.