Mitchell Krog
0a88e3a38f
Re-Test
2017-09-20 12:15:50 +02:00
Stuart Cardall
ebe4020c7a
update-ngxblocker: fix email regex
...
* fixes regex for both busybox & GNU grep
closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/87
2017-09-02 15:50:10 +00:00
Stuart Cardall
2765ce119a
update-ngxblocker: fix email regex
...
closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/86
2017-09-02 08:57:14 +00:00
Stuart Cardall
287d8688cd
update-ngxblocker: print all curl errors
...
* also print curl errors besides 404 / timeouts
2017-08-26 20:10:21 +00:00
Stuart Cardall
3aec168de2
update-ngxblocker: fix installer command line switch
2017-08-26 18:02:08 +00:00
Stuart Cardall
130f1655cb
update-ngxblocker: reload nginx from curl return code
2017-08-26 15:46:15 +00:00
Stuart Cardall
801791e65e
update-ngxblocker: fix POSIX shell compatibility / remove wget_opts
...
* wget_opts() no longer used so removed
* use "$*" to pass multiple paramters to POSIX shell
2017-08-24 14:45:09 +00:00
Stuart Cardall
c62ef4f008
update-ngxblocker: use curl not wget
...
* make downloads more robust & informative with curl
2017-08-23 22:51:14 +00:00
Stuart Cardall
26fec015ed
update-ngxblocker: fix dash shell incompatibility
...
closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/75
* dash shell need $@ to be quoted
* SCRIPT_DIR is checked by install-ngxblocker so not passed to check_dirs()
2017-08-23 22:13:32 +00:00
Stuart Cardall
93f0f7c65c
install-ngxblocker: add download for $SCRIPT_FILES
2017-07-26 23:49:26 +00:00
Stuart Cardall
48e4be4a7c
update-ngxblocker: use install-ngxblocker as $INSTALLER
...
* tidy up tabs / spaces
$INSTALL_INC now downloads new / missing files:
* as part of the update process
* if missing directories are detected
2017-07-26 23:48:24 +00:00
Stuart Cardall
b245b678c5
update-ngxblocker: add -b (bot.d directory) option
...
it is not currently possible to set a variable at the http{} level
to use in nginx include files.
adds -b option / $BOTS_DIR variable to update-ngxblocker for custom
bots.d locations
closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/68
2017-07-24 22:52:30 +00:00
Mitchell Krog
b5fc344420
Updated Examples of Cron Jobs
2017-06-14 17:19:15 +02:00
Mitchell Krog
fd7e4ee264
Updated examples of command line switches and cron jobs.
2017-06-14 17:18:38 +02:00
Mitchell Krog
9fc58196f7
Minor changes to email body messages when updated / not updated
2017-06-13 11:20:57 +02:00
Stuart Cardall
e6af6d7fb6
update-ngxblocker: improved update function / check depends
...
fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/51#issuecomment-306734698
fixes a89de5831a (commitcomment-22363496)
globalblacklist.conf is only downloaded if it is a new version.
the version check is limited to 200 bytes of data rate limited @ 5kb.
(this adds curl as a dependency).
adds check_depends() as wget is not installed by default on centos 7
& curl is not installed by default on ubuntu or alpine linux.
adds check_mail_depends() & disables sending an email report if
/usr/bin/mail is not found.
adds a notification for reloading nginx as systemd only writes a
notice to syslog.
adds a note for logging cron to syslog.
adds some ANSI colour to the output.
2017-06-07 17:33:03 +00:00
Stuart Cardall
312ee8bdb5
update-ngxblocker: use getopts not getopt
...
long options for the command line are removed. getopt is replaced with
the newer getopts (which is compatible with Debian's DASH Shell)
* fixes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/35
* adds sanity checks for user command line switches
* adds -v command line option to print blacklist version
2017-04-26 15:56:40 +00:00
Stuart Cardall
b9198769b4
update-ngxblocker: add command line switches
...
* adds help menu & command line switches
* to view options run:
update-ngxblocker -h
2017-04-22 17:58:29 +00:00
Mitchell Krog
8960bc6de6
Update Comments Regarding Required Include Files
2017-04-20 16:56:04 +02:00
Mitchell Krog
c31997d4f6
Readme and Configuration Updates
...
Changes to reflect new names for install, setup and update script.
Happy Easter 🐰
2017-04-16 11:29:55 +02:00
Mitchell Krog UB1
ec94393e27
Change install, setup and update script names for Consistency
2017-04-16 10:56:03 +02:00