Skip to content

Commit

Permalink
Updated Paths for CentOS from @stevetoza
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellkrogza committed Apr 4, 2017
1 parent 00b40e8 commit 78a8c52
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions CentOS6/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@

##Step 1:

**CREATE THE conf.f folder needed for Apache on CENTOS 6.8**
**CREATE THE conf.d folder needed for Apache on CENTOS 6.8**

**You must create this folder.**

Open Terminal

`su`

`mkdir /etc/httpd/conf/conf.d`
`mkdir /etc/httpd/conf.d`

##Step 2:

**COPY THE GLOBALBLACKLIST.CONF FILE FROM THE REPO**

Copy the contents of **globalblacklist.conf** into your /etc/httpd/conf/conf.d folder.

`cd /etc/httpd/conf/conf.d`
`cd /etc/httpd/conf.d`

`wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/CentOS6/conf.d/globalblacklist.conf -O globalblacklist.conf`

Expand All @@ -35,7 +35,7 @@ Copy the contents of **globalblacklist.conf** into your /etc/httpd/conf/conf.d f

Whitelist all your own domain names and IP addresses. **Please note important changes**, this is now done using include files so that you do not have to keep reinserting your whitelisted domains and IP addresses every time you update.

`cd /etc/httpd/conf/conf.d`
`cd /etc/httpd/conf.d`

- copy the whitelist-ips.conf file into that folder

Expand Down Expand Up @@ -72,7 +72,7 @@ When pulling any future updates now you can simply pull the latest globalblackli
ErrorLog logs/mywebsite.com-error_log
CustomLog logs/mywebsite.com-access_log common
<Directory "/var/www/html/mywebsite.com">
Include /etc/httpd/conf/conf.d/globalblacklist.conf
Include /etc/httpd/conf.d/globalblacklist.conf
</Directory>
</VirtualHost>
```
Expand Down Expand Up @@ -118,7 +118,7 @@ The Apache Ultimate Bot Blocker is now WORKING and PROTECTING your web sites !!!

Updating to the latest version is now as simple as:

`cd /etc/httpd/conf/conf.d`
`cd /etc/httpd/conf.d`

`su`

Expand Down
10 changes: 5 additions & 5 deletions CentOS6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ Open Terminal

`su`

`mkdir /etc/httpd/conf/conf.d`
`mkdir /etc/httpd/conf.d`

##Step 2:

**COPY THE GLOBALBLACKLIST.CONF FILE FROM THE REPO**

Copy the contents of **globalblacklist.conf** into your /etc/httpd/conf/conf.d folder.

`cd /etc/httpd/conf/conf.d`
`cd /etc/httpd/conf.d`

`wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/CentOS6/conf.d/globalblacklist.conf -O globalblacklist.conf`

Expand All @@ -255,7 +255,7 @@ Copy the contents of **globalblacklist.conf** into your /etc/httpd/conf/conf.d f

Whitelist all your own domain names and IP addresses. **Please note important changes**, this is now done using include files so that you do not have to keep reinserting your whitelisted domains and IP addresses every time you update.

`cd /etc/httpd/conf/conf.d`
`cd /etc/httpd/conf.d`

- copy the whitelist-ips.conf file into that folder

Expand Down Expand Up @@ -292,7 +292,7 @@ When pulling any future updates now you can simply pull the latest globalblackli
ErrorLog logs/mywebsite.com-error_log
CustomLog logs/mywebsite.com-access_log common
<Directory "/var/www/html/mywebsite.com">
Include /etc/httpd/conf/conf.d/globalblacklist.conf
Include /etc/httpd/conf.d/globalblacklist.conf
</Directory>
</VirtualHost>
```
Expand Down Expand Up @@ -338,7 +338,7 @@ The Apache Ultimate Bot Blocker is now WORKING and PROTECTING your web sites !!!

Updating to the latest version is now as simple as:

`cd /etc/httpd/conf/conf.d`
`cd /etc/httpd/conf.d`

`su`

Expand Down
8 changes: 4 additions & 4 deletions CentOS6/conf.d/globalblacklist.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
### bad spam referrers. It also has whitelisting for your own IP's and known good IP Ranges

### Last Updated
### Mon Apr 3 11:49:03 SAST 2017
### Tue Apr 4 11:31:47 SAST 2017
### End Last Updated

### Generated in
### 0.292292118073 seconds
### 0.264411687851 seconds
### End Generated in

# PLEASE READ the full Readme at
Expand Down Expand Up @@ -634,7 +634,7 @@ BrowserMatchNoCase "ZyBorg" bad_bot
# WHITELIST Your Own Domain Names Here using the Include File Method
# New Method Uses the include file below so that when pulling future updates your
# whitelisted domain names are automatically now included for you.
Include /etc/httpd/conf/conf.d/whitelist-domains.conf
Include /etc/httpd/conf.d/whitelist-domains.conf

# ****************************************
# SECOND BLOCK BY REFERER STRINGS AND URLS
Expand Down Expand Up @@ -4542,7 +4542,7 @@ Allow from env=good_ref
# WHITELIST all your own IP addresses using the include file below.
# New Method Uses the include file below so that when pulling future updates your
# whitelisted IP addresses are automatically now included for you.
Include /etc/httpd/conf/conf.d/whitelist-ips.conf
Include /etc/httpd/conf.d/whitelist-ips.conf

# ***********
# Google Bots
Expand Down
2 changes: 1 addition & 1 deletion CentOS6/updateapacheblocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Add this line
# yourusername ALL=(ALL) ALL

cd /etc/httpd/conf/conf.d
cd /etc/httpd/conf.d
sudo wget https://raw.githubusercontent.com/mitchellkrogza/apache-ultimate-bad-bot-blocker/master/CentOS6/conf.d/globalblacklist.conf -O globalblacklist.conf
sudo service httpd reload | mail -s "Apache Bad Bot Blocker Updated" [email protected]
exit 0
Expand Down

0 comments on commit 78a8c52

Please sign in to comment.