RewriteEngine On

#   proc/self/environ
RewriteCond %{QUERY_STRING} proc/self/environ [OR]

#      mosConfig    
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]

#       base64_encode    
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]

#      <script>    
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]

#       PHP    
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]

#      _REQUEST    
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})

#    
Options All -Indexes 

#        ( xxx    )
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Example Access Control"
AuthType Basic
<LIMIT GET>
order allow, deny
deny from all
allow from xx.xx.xx.xx
</LIMIT>  