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

[flarectl] Adds User-Agent blocking to flarectl #145

Merged
merged 1 commit into from
Oct 6, 2017

Conversation

elithrar
Copy link
Contributor

@elithrar elithrar commented Oct 6, 2017

Adds the user-agents (shortname: ua) sub-command for managing User-Agent Blocking rules:

$ flarectl user-agents
NAME:
   flarectl user-agents - User-Agent blocking

USAGE:
   flarectl user-agents command [command options] [arguments...]

COMMANDS:
   list, l      List User-Agent blocks for a zone
   create, c    Create a User-Agent blocking rule
   update, u    Update an existing User-Agent block
   delete, d    Delete a User-Agent block
   help, h      Shows a list of commands or help for one command

OPTIONS:
   --help, -h   show help

Example:

ID                               Description                          Mode         Value                                                                                                                 Paused 
-------------------------------- ------------------------------------ ------------ --------------------------------------------------------------------------------------------------------------------- ------ 
62d49d9eacca445b9973f583688b74e7 Block the worst browser in the world block        Wawoo Browser 90210                                                                                                   false  
1ab4054cca55471387e407b35c6cc267 block IE6                            block        Mozilla/6.0 (osh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4       false  
95ccf4e26e714d7c8e55d9a858258061 block IE6                            block        Mozilla/5.0 (osh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4       false  
fdff66612b0a4d73ae72a0f13e7c6693 block IE6                            js_challenge Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4 false  

@elithrar elithrar self-assigned this Oct 6, 2017
@elithrar elithrar requested review from jamesog, cbranch and saljam October 6, 2017 12:38
@elithrar
Copy link
Contributor Author

elithrar commented Oct 6, 2017

Future work: improve the way we render table output.

@elithrar elithrar force-pushed the msilverlock/flarectl/add-user-agent branch from 41a0d1e to 0a2f063 Compare October 6, 2017 12:52
@elithrar
Copy link
Contributor Author

elithrar commented Oct 6, 2017

Fixed a bug on PUT requests where the id was not appended to the request URI.

@grafana-dee grafana-dee self-requested a review October 6, 2017 15:25
@elithrar elithrar merged commit 14ae67c into master Oct 6, 2017
@elithrar elithrar deleted the msilverlock/flarectl/add-user-agent branch October 6, 2017 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants