Git Product home page Git Product logo

Comments (6)

pryley avatar pryley commented on September 25, 2024

The problem with forget-spam-comment/ is that it depends on a page scroll to work. This works for comments because they are usually loaded at the end of the page. But this wouldn't work for sites that use a specific page to submit a review, and where the browser window is large enough that there is no page overflow for a scroll. For that reason, I probably won't implement this.

from site-reviews.

wpsumo avatar wpsumo commented on September 25, 2024

That is true and it's a valid point. This is just for inspirational purpose, you don't think you could come up with something smart for both edge cases? Like delaying JavaScript (https://wordpress.org/plugins/flying-scripts/) is working with a time-out if no user interaction happened, scroll click etc it loads after 5 seconds or 10 or 15 depending on what the user define to be time out.

Wouldn't it work to fire the event to once the user hit submission button with an actual click event, or it will not prevent the spam bots then? Once you hit the submission it fires the action event which then send the submission the action which is now loaded and working. So instead of scroll it happens here.

Otherwise, a semi option to allow us via a filter or action to enable spam comment protection like forget comment spam (https://wordpress.org/plugins/forget-spam-comment/) where the ones who use is know it requires scroll and the ones that have the submission outside the viewport can use it. Not sure if the forget comments spam is built for scroll only or if it supports mobile touch wheel as well.

from site-reviews.

wpsumo avatar wpsumo commented on September 25, 2024

@pryley Did you see my comment above? What action do site reviews use to submit reviews? Does it use the wp-comments-post.php?

If there is a URL we can use we could use Cloudflare to block or challenge. But would also like to find a solution directly to prevent the spam without any recaptcha from google loading. Similar to this a random hash string which we generate in settings or via filter which we later on can setup like this to block: https://www.gulshankumar.net/stop-spam-comments-wordpress/

Even if you add a disallowed comment keys it will create an entry in the database and trash them. But what you want it to prevent them from passing through to trash with spam.

But don't you think there is a solution similar to forget spam comment that could work for site reviews submissions to add some hash that would stop them from hitting with spam submissions.

from site-reviews.

pryley avatar pryley commented on September 25, 2024

I'm not going to implement this.

It's not a solution that will work for all websites (as explained above) so it's not worth the potential support headache. Also this method can easily be bypassed by spam bots using a chromeless browser.

from site-reviews.

wpsumo avatar wpsumo commented on September 25, 2024

Most spambots are in my experience simpler, using old HTTP version, not sure if they would go that far and use chromless browser as of today.

Could you just let me know what action is used to submit the reviews? Maybe we can block and restrict here manually upon our own needs. Like comments need /wp-comments.php to submit via the action.

from site-reviews.

pryley avatar pryley commented on September 25, 2024

Site Reviews uses admin-ajax.php

from site-reviews.

Related Issues (20)

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.