Code Monkey home page Code Monkey logo

nodebb-plugin-spam-be-gone's Introduction

nodebb-plugin-spam-be-gone

From 0.3.x to 0.4.x

Spam Be Gone 0.4.x uses Google's "No CAPTCHA reCAPTCHA" which does not support the old public/private keys, so you need to generate new ones and replace the old ones in your NodeBB Admin Panel, or you will see an error instead of the captcha image, visit this page to do so: https://www.google.com/recaptcha/admin#list

ERROR: Global site keys are not supported

Screenshots

Settings page

screen shot 2015-11-19 at 2 46 08 pm

Registration page

Imgur

Flag a post for moderation

and it will be also reported to Akismet (if enabled) Github with love

nodebb-plugin-spam-be-gone's People

Contributors

akhoury avatar barisusakli avatar dependabot[bot] avatar julianlam avatar lingkongsky avatar lots0logs avatar psychobunny avatar wzrdtales avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nodebb-plugin-spam-be-gone's Issues

Captcha not showing up

reCaptcha isn't appearing when a user is registering for a account.

Running NodeBB v1.1.0 (upgraded to v1.1.2 still no captcha)

No Capture and users not able to register

Hi,

I have installed the plugin and when it is enabled users are unable to register. They get redirected to a blank page with an error. I do not have the error on hand at the moment but I will update later.

There is also no capture displayed on the register page. This could be causing the above issue too.

recaptchaTheme settings is not saved

recaptchaTheme select option is not saved in database settings. So only Clean theme is available...

This is the structure in my mongodb base :

{
        "_id" : ObjectId(""),
        "_key" : "settings:spam-be-gone",
        "honeypotEnabled" : "",
        "honeypotApiKey" : "",
        "akismetEnabled" : "",
        "recaptchaEnabled" : "",
        "recaptchaPublicKey" : "",
        "recaptchaPrivateKey" : ""
}

Does it work with 0.8.2 forum?

I have activate only re-captcha, but it doesn't work. After check of errors on page, I can find this:

window.plugin = window.plugin || {};
            plugin["spam-be-gone"] = window.plugin["spam-be-gone"] || {};
            plugin["spam-be-gone"].recaptchaArgs = &#123

SyntaxError with simple-recaptcha

Forum has been crashing with the following error recently;

20/1 14:42 [27894] - error: SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage.<anonymous> (/var/www/NodeBB/node_modules/nodebb-plugin-spam-be-gone/node_modules/simple-recaptcha/index.js:44:23)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:929:16
at process._tickDomainCallback (node.js:463:13)

I'm running NodeBB v0.6.0 with spam-be-gone v0.4.0, if that helps.

recaptcha theme responsive width problem

2 problems with re :

  • Clean theme : work fine in tablet/phone device but on computer, column size make recaptcha div too wide and recaptcha image become above text field (oversized).
    Maybe a max-width property depending on screen size could be a good option.
  • blackglass (maybe other like him) : I think that plugin css (or nodebb theme css) deconstruct the recaptcha theme displaying

Captcha not showing

Logs:

scripts.js:7 Uncaught ReferenceError: pluginName is not defined
    at n (scripts.js:7)
    at i (scripts.js:16)
    at scripts.js:86
    at dispatch (jquery.js:5183)
    at m.handle (jquery.js:4991)
    at Object.trigger (jquery.js:8249)
    at jquery.js:8327
    at Function.each (jquery.js:354)
    at x.fn.init.each (jquery.js:189)
    at x.fn.init.trigger (jquery.js:8326)
if (window.plugin && plugin[pluginName] && plugin[pluginName].recaptchaArgs && $('#' + plugin[pluginName].recaptchaArgs.targetId).length) {

Add stopforumspam

Hi, thanks for a great plugin.

Noticed a lot of new spam accounts lately. Their IP is in the stopforumspam.com database.
Might be if you can add support for their api on a rainy day.
https://www.stopforumspam.com

Legit user is unable to post

A newly registered and legit user is currently not able to post anything on my forum.
Is there currently any way of stopping akismet from flagging his posts? I can't seem to find anything...

Message internationalization

Support different language for users messages (like "Wrong Captcha" toast).
I can help you for French translation if you want.

when navigating to via "ajaxified" page /register, captcha is not showing

but works fine when page refreshed.

Error in console:

Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened. 

it's the google generated script [example (may expire)] trying to document.write

sample truncated:

var RecaptchaState = {
    t3 : '..... large encrypted string here ...',
    site : '.....site encryted id ... ',
    t2 : '',
    t1 : '.....encrypted string here ...',
    rtl : false,
    challenge : '........encrypted string here .......',
    is_incorrect : false,
    programming_error : '',
    error_message : '',
    server : 'http://www.google.com/recaptcha/api/',
    lang : 'en',
    timeout : 1800
};

/// this part here was able to write when /register page was ajaxified 
document.write('<scr'+'ipt type="text/javascript" s'+'rc="' + RecaptchaState.server + 'js/recaptcha_canary.js"></scr'+'ipt>');

Match NodeBB Language (RE Captcha)

Is it possible to have the language match that of what is set for the NodeBB instance? For example, the language on my instance is set to en_US, but I am in Korea. So the text on the RE Captcha automatically defaults to kr_KR (Korean).

This plugin may not be compatible

I'm having intermittent restarts of nodebb on my site now I'm using this plugin, when it restarts, this is the only error.

warn: [plugins/nodebb-plugin-spam-be-gone] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.
warn: [plugins/nodebb-plugin-spam-be-gone] In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset plugin="nodebb-plugin-spam-be-gone".

On master branch. Up to date.

spam-must-be-gone: auto ban users

On the Notepad++ Community, we have a lot of spams. One thing that would be really great would be some bulk actions. For example, banning an user could automatically report as spam to akismet, and could automatically delete all its messages / topic.

"Topic Rename" spam

Have observed users on our site (over the past few days) creating non-spam topics, then renaming them to spam titles.

These seem to be getting through (maybe even 100% of the time?) Is there a way to hook "topic rename" and run it through spam-be-gone?

reCaptcha broken due to a script error on register page

I think this is related to the recent changes in template.js regarding character escaping. The browser console shows this error: SyntaxError: expected expression, got '&'. Here's what the script looks like on the client:

<div id="spam-be-gone-recaptcha-target"></div><script id="spam-be-gone-recaptcha-script">

window.plugin = window.plugin || &#123;&#125;;
            plugin["spam-be-gone"] = window.plugin["spam-be-gone"] || &#123;&#125;;
            plugin["spam-be-gone"].recaptchaArgs = &#123;"publicKey":"6Leuz-cSAAAAAIR-Q7l_BjnWE7hGGKk6nu4SQxCw","targetId":"spam-be-gone-recaptcha-target","options":{"theme":"clean","lang":"en","tabindex":0&#125;};
</script>
                    </div>

Admins and moderators should be exempt

akismet tends to always mark edits to existing posts as spam, especially when you're only fixing formatting like adding code blocks. This is very annoying.

using a deprecated hook

After upgrading to NodeBB 1.5, I am seeing the following warning in my logs:
8/5 14:13:56 [18121] - warn: [plugins/nodebb-plugin-spam-be-gone] Hook `action:post.flag` is deprecated, please use `action:flag.create` instead.

nodebb 1.2 and re-captcha, nodebb restart

With nodebb 1.2, and enabled re-captcha on signup, we get nodebb server restart after user verifies via re-captcha.

here is the error message:

5/10 06:09 [16434] - �[31merror�[39m: TypeError: Request path contains unescaped characters.
    at new ClientRequest (_http_client.js:50:11)
    at Object.exports.request (http.js:31:10)
    at Object.socket.once.exports.request (https.js:182:15)
    at module.exports (/var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/node_modules/simple-recaptcha-new/index.js:37:23)
    at Object.Plugin._recaptchaCheck (/var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/library.js:261:3)
    at /var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/library.js:193:11
    at /var/nodebb/NodeBB/node_modules/async/lib/async.js:718:13
    at async.forEachOf.async.eachOf (/var/nodebb/NodeBB/node_modules/async/lib/async.js:233:13)
    at _parallel (/var/nodebb/NodeBB/node_modules/async/lib/async.js:717:9)
    at Object.async.parallel (/var/nodebb/NodeBB/node_modules/async/lib/async.js:731:9)
    at Object.Plugin.checkRegister [as method] (/var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/library.js:188:8)
    at /var/nodebb/NodeBB/src/plugins/hooks.js:114:12
    at /var/nodebb/NodeBB/node_modules/async/lib/async.js:375:13
    at iterate (/var/nodebb/NodeBB/node_modules/async/lib/async.js:262:13)
    at Object.async.forEachOfSeries.async.eachOfSeries (/var/nodebb/NodeBB/node_modules/async/lib/async.js:281:9)
    at Object.async.inject.async.foldl.async.reduce (/var/nodebb/NodeBB/node_modules/async/lib/async.js:374:15)
TypeError: Request path contains unescaped characters.
    at new ClientRequest (_http_client.js:50:11)
    at Object.exports.request (http.js:31:10)
    at Object.socket.once.exports.request (https.js:182:15)
    at module.exports (/var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/node_modules/simple-recaptcha-new/index.js:37:23)
    at Object.Plugin._recaptchaCheck (/var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/library.js:261:3)
    at /var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/library.js:193:11
    at /var/nodebb/NodeBB/node_modules/async/lib/async.js:718:13
    at async.forEachOf.async.eachOf (/var/nodebb/NodeBB/node_modules/async/lib/async.js:233:13)
    at _parallel (/var/nodebb/NodeBB/node_modules/async/lib/async.js:717:9)
    at Object.async.parallel (/var/nodebb/NodeBB/node_modules/async/lib/async.js:731:9)
    at Object.Plugin.checkRegister [as method] (/var/nodebb/NodeBB/node_modules/nodebb-plugin-spam-be-gone/library.js:188:8)
    at /var/nodebb/NodeBB/src/plugins/hooks.js:114:12
    at /var/nodebb/NodeBB/node_modules/async/lib/async.js:375:13
    at iterate (/var/nodebb/NodeBB/node_modules/async/lib/async.js:262:13)
    at Object.async.forEachOfSeries.async.eachOfSeries (/var/nodebb/NodeBB/node_modules/async/lib/async.js:281:9)
    at Object.async.inject.async.foldl.async.reduce (/var/nodebb/NodeBB/node_modules/async/lib/async.js:374:15)

0-5-pre

not showing in the register page for 0.5-pre

Send more data to Akismet

Currently, calls to Akismet only include user_ip, user_agent, permalink, comment_content, and comment_author. Ideally, they should also include referrer, comment_type, and comment_author_email.

comment_author_email is probably the most important one. A blank comment_type is assumed to be "comment", but it should probably be "forum-post" for new threads and "comment" for replies to threads.

Chris Finke
Akismet

Theme Dependency

Is the @latest dependent on a certain nodebb-theme-vanilla? Testing out the latest doesn't support captcha with [email protected]. However, the hooks are working as testing a new user registration denies me because I failed to complete the captcha (even though no captcha is presented).

Possible fix is to specify a min version of the vanilla theme (if that is indeed my problem).

Admin unable to edit users post

NodeBB - 1.4.3
nodebb-plugin-spam-be-gone - 0.4.10

I was edited a users post, and on submission it was being flagged as spam. The user was under the threshold, but as an Admin it should be possible to bypass the spam check if editing a users post.

Also - is 0.4.11 going to be made available via npm or is it waiting on a fix ?

Thanks for your time.

Getting "getaddrinfo ENOTFOUND" with Akismet Enabled

The plugin is enabled, Akismet APKI key entered, Akismet enabled.
When a user tries to create a new topic or reply to a topic, the following error is thrown and the post/topic is not submitted.

ERROR
getaddrinfo ENOTFOUND 
4ce6341214.rest.akismet.com 
4ce6341214.rest.akismet.com:80

The following screenshot shows the error displayed:
2015-11-19_0-06-20

It could be my server configuration, but it could be something with the source code. I found one more user facing this and he opened a topic at nodeBB community with no replies - https://community.nodebb.org/topic/6549/error-getaddrinfo-enotfound/2

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.