Giter VIP home page Giter VIP logo

pmpro-akismet's People

Contributors

andrewlimaza avatar dparker1005 avatar github-actions[bot] avatar ideadude avatar kimcoleman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

pmpro-akismet's Issues

Can we move the check into JS/etc?

The Akismet API is fast, but every API call we add to the pmpro_registration_checks hook adds time to checkout.

If we just move the whole check to the frontend via JS, then spammers can figure out ways to disable that check. So we need a kind of hybrid solution.

Something like this might work...

  1. When an email is entered into the form at checkout (tab away), kick off an ajax call to check the email.
  2. The callback checks the email via the Akismet API then generates a random string and saves it into session.
  3. The random string is sent back to the frontend and embedded as a hidden var in the form.
  4. When the form is submitted, it will check if the random string matches. If not, then it will check the email via the API in php as a fall back.

Ability to log spam records for a checkout

A neat logger for capturing some information when spam is detected will help developer's see if the plugin's working as intended or marking false positives.

Information to log:

  • Checkout information (except password and any card information)
  • IP Address
  • Akismet response/status (if their API gives more information)

The logger would need to be a turn on/turn off via a constant as it can quickly fill up disk usage on servers.

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.