From e86b5dbd7bec03b90c4c2bc4eac7443fc05cb579 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sat, 30 May 2020 04:30:27 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 03a71ca..2dee005 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ HTTP redirect builder for FortiWeb WAFs. Configure your WAF from a spreadsheet. -### Build +## Build 1. Install Go from https://golang.org 2. Open a terminal from this directory and run the command: @@ -11,11 +11,11 @@ HTTP redirect builder for FortiWeb WAFs. Configure your WAF from a spreadsheet. go build . ``` -### Usage +## Usage Run the built executable from a terminal. Default arguments are used if not specifid -##### Arguments of wafredir: +#### Arguments of wafredir: **-action string** @@ -29,13 +29,13 @@ default (8): only used with the action 'test'. Determines the maximum number co path to an input csv file. The first column of the file should be the source URL, the second column of the file should be the destination URL, and the third column should be the status code (for example 301 or 302). (default "redirects.csv") -##### Example Usage: +#### Example Usage: ```shell ./wafredir -action="test" -concurrentReq=420 -csvfile="path/to/file.csv" ``` -### Example input csv +## Example input csv The first column is the source URL, the second column is the destination URL, the third column is the redirect type, must be either 301 or 302. @@ -45,7 +45,7 @@ https://myoldblog.net/blog/post/1,https://mynewblog.ru/cykablyat,302 http://mysite.org,https://yoursite.net/referral/mysite,301 ``` -### Example output of config mode +## Example output of config mode ```txt ------------------------