Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
- Paths for Apache 2.2 Tests
- Curl Tests Typo's
- New Instructions Logos
  • Loading branch information
mitchellkrogza committed Aug 6, 2018
1 parent b53a22d commit 3b31dcb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Binary file modified .assets/apache-2-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .assets/apache-2-4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions .dev-tools/install-apache-2.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ sudo cp ${TRAVIS_BUILD_DIR}/.dev-tools/_conf_files_for_testing/apache2.2.25/http
# Get files from Repo Apache_2.2
# *************************************

sudo mkdir /etc/apache2/custom.d
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/globalblacklist.conf -O /etc/apache2/custom.d/globalblacklist.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/whitelist-ips.conf -O /etc/apache2/custom.d/whitelist-ips.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/whitelist-domains.conf -O /etc/apache2/custom.d/whitelist-domains.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/blacklist-ips.conf -O /etc/apache2/custom.d/blacklist-ips.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/bad-referrer-words.conf -O /etc/apache2/custom.d/bad-referrer-words.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/blacklist-user-agents.conf -O /etc/apache2/custom.d/blacklist-user-agents.conf
sudo mkdir /usr/local/apache2/custom.d
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/globalblacklist.conf -O /usr/local/apache2/custom.d/globalblacklist.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/whitelist-ips.conf -O /usr/local/apache2/custom.d/whitelist-ips.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/whitelist-domains.conf -O /usr/local/apache2/custom.d/whitelist-domains.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/blacklist-ips.conf -O /usr/local/apache2/custom.d/blacklist-ips.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/bad-referrer-words.conf -O /usr/local/apache2/custom.d/bad-referrer-words.conf
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/Apache_2.2/custom.d/blacklist-user-agents.conf -O /usr/local/apache2/custom.d/blacklist-user-agents.conf

# **********************
# Test the Apache Config
Expand Down
4 changes: 2 additions & 2 deletions .dev-tools/run-curl-tests-2.4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fi
run_curltest5 () {
truncate -s 0 ${curltest5}
printf '%s%s\n\n' "Last Tested: " "${now}" >> "${curltest5}"
curl -v -A "GoogleBot" http://local.dev:80/index.html 2>&1 >> ${curltest5}
curl -v -A "Googlebot" http://local.dev:80/index.html 2>&1 >> ${curltest5}
if grep -i 'Welcome' ${curltest5}; then
echo 'GOOD BOT ALLOWED THROUGH - TEST PASSED'
else
Expand All @@ -115,7 +115,7 @@ fi
run_curltest6 () {
truncate -s 0 ${curltest6}
printf '%s%s\n\n' "Last Tested: " "${now}" >> "${curltest6}"
curl -v -A "BingBot" http://local.dev:80/index.html 2>&1 >> ${curltest6}
curl -v -A "bingbot" http://local.dev:80/index.html 2>&1 >> ${curltest6}
if grep -i 'Welcome' ${curltest6}; then
echo 'GOOD BOT ALLOWED THROUGH - TEST PASSED'
else
Expand Down

0 comments on commit 3b31dcb

Please sign in to comment.