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:

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.
| Comment | File | Size | Author |
|---|---|---|---|
| node_limit.jpg | 47.13 KB | matas.k |
Comments
Comment #1
duaelfrFirst 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.
Comment #2
matas.k commentedThanks 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?
Comment #3
keyral commentedhello,
Your redirection of a node_limit're refusing access to the node therefore denied access.
Comment #4
1kenthomas commentedClarifying the above.
Relative question: does D8 version limit node saves by hooking?