mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 19:20:16 +00:00
Update instructions for using update-ngblocker and specifying email address using command line parameter.
This commit is contained in:
parent
dde79a32ef
commit
4509a596e4
2 changed files with 6 additions and 6 deletions
|
@ -272,15 +272,15 @@ Now setup cron to automatically update the blocker for you every day so you alwa
|
|||
|
||||
`sudo crontab -e`
|
||||
|
||||
Add the following line at the end of your crontab file
|
||||
Add the following line at the end of your crontab file. Note adding the `-e` command line parameter to specify your email address where the update report is sent to. Obviously substitute `yourname@youremail.com` with your real email address or you will not receive the email when the script has updated.
|
||||
|
||||
`00 22 * * * sudo /usr/sbin/update-ngxblocker`
|
||||
`00 22 * * * sudo /usr/sbin/update-ngxblocker -e yourname@youremail.com`
|
||||
|
||||
This will update the blocker every night for you at 10 PM.
|
||||
|
||||
If you want it to update more frequently (as sometimes I push out 3-4 updates a day) you can set it as follows to run the cron every 8 hours, although just once a day is more than enough.
|
||||
|
||||
`00 */8 * * * sudo /usr/sbin/update-ngxblocker`
|
||||
`00 */8 * * * sudo /usr/sbin/update-ngxblocker -e yourname@youremail.com`
|
||||
|
||||
That's it, the blocker will automatically keep itself up to date and also reload Nginx once it has downloaded the latest version of the globalblacklist.conf file.
|
||||
|
||||
|
|
|
@ -273,15 +273,15 @@ Now setup cron to automatically update the blocker for you every day so you alwa
|
|||
|
||||
`sudo crontab -e`
|
||||
|
||||
Add the following line at the end of your crontab file
|
||||
Add the following line at the end of your crontab file. Note adding the `-e` command line parameter to specify your email address where the update report is sent to. Obviously substitute `yourname@youremail.com` with your real email address or you will not receive the email when the script has updated.
|
||||
|
||||
`00 22 * * * sudo /usr/sbin/update-ngxblocker`
|
||||
`00 22 * * * sudo /usr/sbin/update-ngxblocker -e yourname@youremail.com`
|
||||
|
||||
This will update the blocker every night for you at 10 PM.
|
||||
|
||||
If you want it to update more frequently (as sometimes I push out 3-4 updates a day) you can set it as follows to run the cron every 8 hours, although just once a day is more than enough.
|
||||
|
||||
`00 */8 * * * sudo /usr/sbin/update-ngxblocker`
|
||||
`00 */8 * * * sudo /usr/sbin/update-ngxblocker -e yourname@youremail.com`
|
||||
|
||||
That's it, the blocker will automatically keep itself up to date and also reload Nginx once it has downloaded the latest version of the globalblacklist.conf file.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue