Hi. I use module Form Block to show node creation forms in a block. It is displayed in homepage of the site via Panels.

The form allows anonymous users to submits unlimited nodes by default. So some users simply abuse this and spam nodes.

I just want to limit 2 node creations per unique anonymous user IP in 12 hour span. My settings:
a

The problem is it doesn't work. If you go to home page of the website and try to load it, you get redirected to node/add/ and page not found message. Why's that? It should show the home-page as it is and when the user, who already reached the limit today, tries to submit new node, he simply gets some message saying he reached the limit and needs to wait 12 hours. Or something like that. At least that's what I was expecting from this module.

CommentFileSizeAuthor
node_limit.jpg47.13 KBmatas.k

Comments

duaelfr’s picture

First of all, you might not use "Role" and "User of role" submodules at the same time.
The Role submodule treats all users of a given role as if they were the same user so they share the limit.
The User of role submodule treats each user of the role separately but I am not sure it works with anonymous users.

The second problem is that the module was designed to work on node/add/* pages and I think nothing has been done for your case. Unless you can provide a patch or hire someone to fix it, I think you should look for an alternative. If your problem is real spam, you can use womething like Botcha or Mollom to prevent bots to post content.

matas.k’s picture

Thanks for reply. I have been looking for alternatives, didn't find anything. Captcha is applied, but it's real users abusing it, not bots. I cannot do any patch, since I'm no PHP programmer.

Maybe you know any alternatives?

keyral’s picture

hello,

Your redirection of a node_limit're refusing access to the node therefore denied access.

1kenthomas’s picture

Title: Don't work » Doesn't limit programmatic node creation; (plus: limit each user with role)
Component: User interface » Code
Category: Support request » Feature request

Clarifying the above.

Relative question: does D8 version limit node saves by hooking?