Skip to content
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

feat(plugin) bot-detection #1259

Closed
wants to merge 1 commit into from
Closed

feat(plugin) bot-detection #1259

wants to merge 1 commit into from

Conversation

subnetmarco
Copy link
Member

@subnetmarco subnetmarco commented May 27, 2016

This plugin detects popular bots from the User-Agent of the request and forbids them from executing the request.

The generic rules hard-coded in the plugin can be overwritten with an array of Regex expressions in a config.whitelist or config.blacklist property when adding the plugin.

@subnetmarco subnetmarco added this to the 0.9 milestone May 27, 2016
@subnetmarco subnetmarco self-assigned this May 27, 2016
@subnetmarco subnetmarco added the pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) label May 27, 2016
@subnetmarco subnetmarco force-pushed the plugins/bot-detection branch from a7905ac to 93b4e60 Compare May 27, 2016 03:24
@thibaultcha thibaultcha added pr/status/needs review and removed pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) area/plugins labels May 27, 2016
@thibaultcha
Copy link
Member

Because the target is 0.9, this should be based of refactor/cli, since some of the changes made here are outdated, and because it removes dependencies such as stringy, for instance.

@subnetmarco
Copy link
Member Author

subnetmarco commented May 27, 2016

I take it the other way around: I am waiting for refactor/cli to be merged into next, before merging this branch into next. So that if refactor/cli for whatever reasons doesn't make it, this branch can still be merged into next, otherwise I will rebase.

@thibaultcha
Copy link
Member

Ok, it will mean rewriting all the tests too.

cache.set(cache.bot_detection_key(key), value)
local index_keys = cache.get(INDEX)
if not index_keys then index_keys = {} end
table.insert(index_keys, key)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index_keys[#index_keys+1] = key is the preferred way because faster and cleaner.

@thibaultcha thibaultcha added pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done. and removed pr/status/needs review labels May 27, 2016
@subnetmarco subnetmarco force-pushed the plugins/bot-detection branch from 93b4e60 to 6a161a4 Compare May 27, 2016 23:59
@subnetmarco subnetmarco added pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) and removed pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done. labels May 27, 2016
@thibaultcha thibaultcha added pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done. and removed pr/ready (but hold merge) No more concerns, but do not merge yet (probably a conflict of interest with another PR or release) labels Jun 24, 2016
@thibaultcha
Copy link
Member

Needs to be reworked with new testing tools after refactor/cli merging.

@thibaultcha thibaultcha changed the title Bot Detection plugin feat(plugin) bot-detection Jun 27, 2016
@Tieske
Copy link
Member

Tieske commented Jul 17, 2016

replaced by #1413

@Tieske Tieske closed this Jul 17, 2016
@thibaultcha thibaultcha deleted the plugins/bot-detection branch August 12, 2016 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/changes requested Changes were requested to this PR by a maintainer. Please address them and ping back once done.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants