You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**WHITELIST ALL YOUR OWN DOMAIN NAMES AND IP ADDRESSES**
22
22
@@ -37,7 +37,7 @@ Use nano, vim or any other text editor to edit both whitelist-ips.conf and white
37
37
38
38
When pulling any future updates now you can simply pull the latest globalblacklist.conf file and it will automatically include your whitelisted domains and IP addresses. No more remembering having to do this yourself.
39
39
40
-
##Step 3:
40
+
##Step 3:
41
41
42
42
**INCLUDE THE GLOBALBLACKLIST.CONF FILE INTO A VIRTUALHOST**
43
43
@@ -57,7 +57,7 @@ Include /etc/apache2/custom.d/globalblacklist.conf <<<<<< This needs to be added
57
57
<IfModule mod_rewrite.c>
58
58
```
59
59
60
-
##Step 4:
60
+
##Step 4:
61
61
62
62
**TEST YOUR APACHE CONFIGURATION**
63
63
@@ -75,7 +75,7 @@ or
75
75
76
76
The blocker is now active and working so now you can run some simple tests from another linux machine to make sure it's working.
77
77
78
-
##Step 5:
78
+
##Step 5:
79
79
80
80
*TESTING**
81
81
@@ -100,7 +100,7 @@ Should respond with 403 Forbidden
100
100
101
101
The Apache Ultimate Bot Blocker is now WORKING and PROTECTING your web sites !!!
102
102
103
-
##Step 6:
103
+
##Step 6:
104
104
105
105
**UPDATING THE APACHE BAD BOT BLOCKER** is now easy thanks to the automatic includes for whitelisting your own domain names.
**WHITELIST ALL YOUR OWN DOMAIN NAMES AND IP ADDRESSES**
244
244
@@ -259,7 +259,7 @@ Use nano, vim or any other text editor to edit both whitelist-ips.conf and white
259
259
260
260
When pulling any future updates now you can simply pull the latest globalblacklist.conf file and it will automatically include your whitelisted domains and IP addresses. No more remembering having to do this yourself.
261
261
262
-
##Step 3:
262
+
##Step 3:
263
263
264
264
**INCLUDE THE GLOBALBLACKLIST.CONF FILE INTO A VIRTUALHOST**
265
265
@@ -279,7 +279,7 @@ Include /etc/apache2/custom.d/globalblacklist.conf <<<<<< This needs to be added
279
279
<IfModule mod_rewrite.c>
280
280
```
281
281
282
-
##Step 4:
282
+
##Step 4:
283
283
284
284
**TEST YOUR APACHE CONFIGURATION**
285
285
@@ -297,7 +297,7 @@ or
297
297
298
298
The blocker is now active and working so now you can run some simple tests from another linux machine to make sure it's working.
299
299
300
-
##Step 5:
300
+
##Step 5:
301
301
302
302
*TESTING**
303
303
@@ -322,7 +322,7 @@ Should respond with 403 Forbidden
322
322
323
323
The Apache Ultimate Bot Blocker is now WORKING and PROTECTING your web sites !!!
324
324
325
-
##Step 6:
325
+
##Step 6:
326
326
327
327
**UPDATING THE APACHE BAD BOT BLOCKER** is now easy thanks to the automatic includes for whitelisting your own domain names.
Relax now and sleep better at night knowing your site is telling all those baddies FORBIDDEN !!!
349
349
350
-
##Finally - Stopping Google Analytics 'ghost' spam
350
+
##Finally - Stopping Google Analytics 'ghost' spam
351
351
Simply using the Apache blocker does not stop Google Analytics ghost referral spam
352
352
because they are hitting Analytics directly and not always necessarily touching your website.
353
353
354
354
You should use regex filters in Analytics to prevent ghost referral spam.
355
355
For this a simple google-exclude.txt file has been created for you and it is updated at the same time when the Nginx Blocker is updated.
356
356
357
-
##To stop Ghost Spam on On Analytics
357
+
##To stop Ghost Spam on On Analytics
358
358
Navigate to your Google Analytics Admin panel and add a Segment. (New Segment > Advanced > Conditions)
359
359
This will need to be done on each and every site where you want this filter to be in effect.
360
360
Google has a limit on the length of the regex so it is now broken up for you into multiple google-exclude-*.txt files.
@@ -371,13 +371,13 @@ Google has a limit on the length of the regex so it is now broken up for you int
371
371
Do the same thing now for google-exclude-02.txt and google-exclude-03.txt.
372
372
As the list grows there will be more google-exclude files each limited to Google's restriction limit.
373
373
374
-
#Or Even Better Check Out RefererSpamBlocker
374
+
#Or Even Better Check Out RefererSpamBlocker
375
375
376
376
Also check out the awesome [Referer Spam Blocker](https://referrerspamblocker.com)
377
377
for Google Analytics which uses a collaborated source of spam domains and automatically adds all the filters to your
378
378
Analytics sites for you in 2 easy clicks and it is FREE.
379
379
380
-
##Blocking Spam Domains Using Google Webmaster Tools
380
+
##Blocking Spam Domains Using Google Webmaster Tools
381
381
382
382
I have added the creation of a Google Disavow text file called google-disavow.txt. This file can be used in Google's Webmaster
383
383
Tools to block all these domains out as spammy or bad links. Use with caution.
@@ -391,10 +391,10 @@ See the Fail2Ban folder for instructions on configuring this great add on for th
391
391
392
392
### If this helps you [You can buy me a beer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TNCNMH8QVM78J):beer: or send some cheese for my mouse [](https://www.gitcheese.com/app/#/projects/bc50574f-b6dc-4f08-80d4-f6ba5baf0d43/pledges/create)
Come drop by and visit me at https://mitchellkrog.com
430
430
431
-
###Acknowledgements:
431
+
###Acknowledgements:
432
432
433
433
Many parts of the generator scripts and code running behind this project have been adapted from multiple sources. In fact it's so hard to mention everyone but here are a few key people whose little snippets of code have helped me introduce new features all the time. Show them some love and check out some of their projects too
0 commit comments