mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-14 17:19:49 +00:00
Referrers (+)
- Some syntax fixes in scripts
This commit is contained in:
parent
d03db7179d
commit
50ec9ca29b
5 changed files with 69 additions and 26 deletions
|
@ -62,9 +62,9 @@ _endmarker="### Version Information ##"
|
|||
printf '%s\n%s\n%s%s\n%s%s\n%s%s\n%s\n%s\n\n%s\n%s\n%s\n' "$_startmarker" "###################################################" "### Version: " "$MY_GIT_TAG" "### Updated: " "$_now" "### Bad Bot Count: " "$BAD_BOTS" "###################################################" "$_endmarker" "User-agent: *" "Disallow: /wp-admin/" "Allow: /wp-admin/admin-ajax.php" >> "$_tmprobots"
|
||||
while IFS= read -r LINE
|
||||
do
|
||||
printf 'User-agent: %s\n%s\n' "${LINE}" "Disallow:/" >> $_tmprobots
|
||||
printf 'User-agent: %s\n%s\n' "${LINE}" "Disallow:/" >> "$_tmprobots"
|
||||
done < $_input1
|
||||
printf '\n' >> $_tmprobots
|
||||
printf '\n' >> "$_tmprobots"
|
||||
sudo cp $_tmprobots $TRAVIS_BUILD_DIR/robots.txt/robots.txt
|
||||
exit 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue