to dirprocess: block bad bots in .htaccess                                    rev 27 jun 2021

Category: websites



.......................................................
summary 


......................... 
syntax for .htaccess

# Example of a .htaccess file with rules to block 
# both by IP address and user agent strings:

BrowserMatchNoCase UserAgentString bad_bot
BrowserMatchNoCase SpammerRobot bad_bot
BrowserMatchNoCase SecurityHoleRobot bad_bot
Order Deny,Allow
Deny from env=bad_bot
Deny from 192.43.108.67
Deny from 202.168.1.124 



.......................................................
sources:

  * How to block bad website bots and spiders With .htaccess tweaks 
  
      https://www.seoblog.com/block-bots-spiders-htaccess/
      mar 2018
      best one - 
        explains about the different kinds of bots.
        blocking with robots.txt
        blocking with .htaccess (on apache)
          examples of different syntax.
          explanations of the syntax!

  Some variations on explaining:
    Block unwanted users from your site using .htaccess 
      https://www.inmotionhosting.com/support/website/block-unwanted-users-from-your-site-using-htaccess/
      aug 2019
    How to Block Unwanted Bots from Your Website with .htaccess
      https://www.thesitewizard.com/apache/block-bots-with-htaccess.shtml
      jan 2020


_______________________________________________________
begin 27 jun 2021
-- 0 --