User-agent: * Disallow: /phpBB3/adm/ Disallow: /phpBB3/groupcp.php Disallow: /phpBB3/memberlist.php Disallow: /phpBB3/modcp.php Disallow: /phpBB3/posting.php Disallow: /phpBB3/profile.php Disallow: /phpBB3/privmsg.php Disallow: /phpBB3/viewonline.php Disallow: /phpBB3/search.php #Disallow: /chat/admin.php Disallow: /phpBB2old/ Disallow /phpBB2/ #php_flag register_globals 0 #php_flag register_globals off #php_flag magic_quotes_gpc on #php_value memory_limit 16M #Options +FollowSymlinks # Disable the files listing feature #Options All -Indexes ################################## # Errors Pages - BEGIN # ################################## ################################## # Decomment these lines to enable error document management. # You can add absolute path if you want always the correct path being parsed. # Something like: # ErrorDocument 400 http://www.icyphoenix.com/errors.php?code=400 ################################## #ErrorDocument 400 /errors.php?code=400 #ErrorDocument 401 /errors.php?code=401 #ErrorDocument 403 /errors.php?code=403 #ErrorDocument 404 /errors.php?code=404 #ErrorDocument 500 /errors.php?code=500 ################################## # Errors Pages - END # ################################## RewriteEngine On #This may cause isues with subdirs and so I have not enabled it. #RewriteBase / #Make sure the whole site goes to www.mysite.com instead of mysite.com. This is good for the search engines #Edit and uncomment the below lines for your own site. #Make sure to replace icyphoenix.com with your site address. #RewriteCond %{HTTP_HOST} ^icyphoenix.com #RewriteRule (.*) http://www.icyphoenix.com/$1 [R=301,L] ################################## # Block Hacking Attempts - BEGIN # ################################## ################################## # CONDITIONS ################################## # STRICT CONDITION #RewriteCond %{QUERY_STRING} ^.*(phpbb_root_path|album_root_path|upi2db_file_path|thispath|PP_PATH).*$ # LESS STRICT CONDITION RewriteCond %{QUERY_STRING} ^.*(phpbb_root_path\=|album_root_path\=|upi2db_file_path\=|thispath\=|PP_PATH\=).*$ ################################## # REWRITE ################################## # FORBIDDEN #RewriteRule ^.*$ - [F,L] # REDIRECT TO LOCALHOST RewriteRule ^.*$ http://127.0.0.1/ [redirect,last] ################################## ################################## # Block Hacking Attempts - END # ################################## ########## Begin - Rewrite rules to block out some common exploits # # Block out any script trying to set a mosConfig value through the URL RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a