-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Honeypot Filter #176
Comments
How about this implementation http://forum.codeigniter.com/thread-63141.html |
We do not need to start bloating CI4 with third party add-on stuff. |
My thought was that this would replace the ineffective CAPTCHA system we have with something that, as far as I know, is still seen as being fairly effective at stopping bots. And, with filters now in the system, it can be automated so the user never has to think about it. |
I read simple explanation here. And have try 2 method of implementation,
|
As I understand this cannot replace captcha; this is a method to protect against general purpose spam bots & won't be effective if the bot was written for a specific site. Anyway, I don't like the idea of having useless form fields in every single form I have so adding it automatically & checking for it automatically may not be convenient for everybody. How it works:
If I understand how it works correctly then here's my suggestion on how to implement this:
We might have both options implemented & let the user chose what he wants. |
Which is why it would be setup as a filter that users could decide to use or not. You're how it works section describes the original version. Improvements have been made to the theories that improve it's effectiveness, including randomizing where in the form it's placed, taking the name of an existing form-field, hashing the other on the form, and then putting them back on the way back in, time restrictions, etc. With the newer methods, they seem to be better than many, if not most, captcha's, and leaps above what CI3 provides. But the newer methods also work best as a filter/middleware so that it can analyze the built form during output and insert/modify the field names, etc, and then put things back and do it's check on the way in. |
This is a fantastic feature. A must to be included in Codeigniter. Better than CSRF I think. 👍 @aanbar I think you are right. the implementation must have more options. the field may contain some value or a blank.
Yes you are right. But there is always an option to disable this honey pot and it is off by default. If someone wants then just enable honey pot and use it. I think using this we can raise the security level of Codeigniter by including this feature. |
This is a nice feature is anyone working it currently? |
I have made a start on it, but have not gotten very far. If you want to tackle it - that works for me! :) |
The theory i have is adding it as middleware, so that on every request the honeypot field can be checked and redirected to blank page if the fields is not empty and possibility to randomize the field names. |
@dvdnwoke That's exactly correct. Though CI4 doesn't have "middleware" by that name. You would use Controller Filters the same way. |
Ok I will implement it over the weekend |
Great. I look forward to it! |
@lonnieezell
|
@dvdnwoke That's a good start. Here's a few comments:
Then go ahead an submit a PR and we can go from there. Thanks! |
Something like: https://github.com/CHH/stack-honeypot
The text was updated successfully, but these errors were encountered: