Skip to content

Commit 78a8c52

Browse files
Updated Paths for CentOS from @stevetoza
1 parent 00b40e8 commit 78a8c52

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

CentOS6/CONFIGURATION.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99

1010
##Step 1:
1111

12-
**CREATE THE conf.f folder needed for Apache on CENTOS 6.8**
12+
**CREATE THE conf.d folder needed for Apache on CENTOS 6.8**
1313

1414
**You must create this folder.**
1515

1616
Open Terminal
1717

1818
`su`
1919

20-
`mkdir /etc/httpd/conf/conf.d`
20+
`mkdir /etc/httpd/conf.d`
2121

2222
##Step 2:
2323

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

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

28-
`cd /etc/httpd/conf/conf.d`
28+
`cd /etc/httpd/conf.d`
2929

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

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

3636
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.
3737

38-
`cd /etc/httpd/conf/conf.d`
38+
`cd /etc/httpd/conf.d`
3939

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

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

119119
Updating to the latest version is now as simple as:
120120

121-
`cd /etc/httpd/conf/conf.d`
121+
`cd /etc/httpd/conf.d`
122122

123123
`su`
124124

CentOS6/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ Open Terminal
237237

238238
`su`
239239

240-
`mkdir /etc/httpd/conf/conf.d`
240+
`mkdir /etc/httpd/conf.d`
241241

242242
##Step 2:
243243

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

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

248-
`cd /etc/httpd/conf/conf.d`
248+
`cd /etc/httpd/conf.d`
249249

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

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

256256
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.
257257

258-
`cd /etc/httpd/conf/conf.d`
258+
`cd /etc/httpd/conf.d`
259259

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

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

339339
Updating to the latest version is now as simple as:
340340

341-
`cd /etc/httpd/conf/conf.d`
341+
`cd /etc/httpd/conf.d`
342342

343343
`su`
344344

CentOS6/conf.d/globalblacklist.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
### bad spam referrers. It also has whitelisting for your own IP's and known good IP Ranges
1313

1414
### Last Updated
15-
### Mon Apr 3 11:49:03 SAST 2017
15+
### Tue Apr 4 11:31:47 SAST 2017
1616
### End Last Updated
1717

1818
### Generated in
19-
### 0.292292118073 seconds
19+
### 0.264411687851 seconds
2020
### End Generated in
2121

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

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

45474547
# ***********
45484548
# Google Bots

CentOS6/updateapacheblocker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Add this line
2222
# yourusername ALL=(ALL) ALL
2323

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

0 commit comments

Comments
 (0)