<IfModule mod_rewrite.c>
       RewriteEngine On

        #       If you are having problems with the rewrite rules, remove the "#" from the
        #       line that begins "RewriteBase" below. You will also have to change the path
        #       of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo

        #       This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

        #   Deny and Allow bots by User-Agent
	SetEnvIfNoCase User-Agent ".*." bad_bot
        SetEnvIfNoCase User-Agent "^.*hl2.*$|Half-Life 2" good_bot
        Deny from env=bad_bot
        Allow from env=good_bot

</IfModule>
