Update 'README.md'
This commit is contained in:
parent
299137a828
commit
e86b5dbd7b
12
README.md
12
README.md
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
HTTP redirect builder for FortiWeb WAFs. Configure your WAF from a spreadsheet.
|
HTTP redirect builder for FortiWeb WAFs. Configure your WAF from a spreadsheet.
|
||||||
|
|
||||||
### Build
|
## Build
|
||||||
|
|
||||||
1. Install Go from https://golang.org
|
1. Install Go from https://golang.org
|
||||||
2. Open a terminal from this directory and run the command:
|
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 .
|
go build .
|
||||||
```
|
```
|
||||||
|
|
||||||
### Usage
|
## Usage
|
||||||
|
|
||||||
Run the built executable from a terminal. Default arguments are used if not specifid
|
Run the built executable from a terminal. Default arguments are used if not specifid
|
||||||
|
|
||||||
##### Arguments of wafredir:
|
#### Arguments of wafredir:
|
||||||
|
|
||||||
**-action string**
|
**-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")
|
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
|
```shell
|
||||||
./wafredir -action="test" -concurrentReq=420 -csvfile="path/to/file.csv"
|
./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.
|
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
|
http://mysite.org,https://yoursite.net/referral/mysite,301
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example output of config mode
|
## Example output of config mode
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
------------------------
|
------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user