hostingames Posted December 11, 2014 Share Posted December 11, 2014 hi, of that add the config on the .htaccess file happens more aler on knowledgebase.php ca blocks I need it or you have another solution for the protection I thank you premeur the config with the site itself works well RewriteEngine On # Announcements RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC] RewriteRule ^announcements$ ./announcements.php [L,NC] # Downloads RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^downloads$ ./downloads.php [L,NC] # Knowledgebase RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC] RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC] RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC] # robot et sitemap RewriteRule ^robots.txt index.php?m=whmcs_seo&action=robots RewriteRule ^sitemap.xml index.php?m=simple_sitemap # redirection escroc RewriteCond %{REMOTE_ADDR} ^41\.[0-9]+\.[0-9]+\.[0-9]+ [OR] RewriteCond %{REMOTE_ADDR} ^81\.[0-9]+\.[0-9]+\.[0-9]+ [OR] RewriteCond %{REMOTE_ADDR} ^196\.[0-9]+\.[0-9]+\.[0-9]+ # RewriteRule .* http://www.ambafrance-ci.org/spip.php?article350 RewriteCond %{REMOTE_ADDR} !^(66\.249\.65.\202|207\.46\.13\.46|66\.249\.71\.237|67\.195\.112\.122|67\.195\.111\.170)$ # Geo redirection escroc RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^SN|NE|NG|CG|DE|CI|BJ|RU|CN|RU|EN|US|CA|$ RewriteRule .* - [F] SetEnvIf GEOIP_COUNTRY_CODE ^SN|NE|NG|CG|DE|CI|BJ|RU|CN|RU|EN|US|CA $ FORBIDDEN=1 RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} !^$ [OR] RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR] RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] RewriteCond %{HTTP:XROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:X-FORWARDED-FOR} !^$ [OR] RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ [OR] RewriteCond %{HTTP:FORWARDED-FOR} !^$ [OR] RewriteCond %{HTTP:X-FORWARDED} !^$ RewriteCond %{HTTP_REFERER} !(.*)proxy-01.com(.*) RewriteCond %{HTTP_REFERER} !(.*)proxy-02.net(.*) RewriteCond %{HTTP_REFERER} !(.*)proxy-03.fr(.*) RewriteRule ^(.*)$ - [F] Order Deny,Allow # Google Allow from 66.249.65.202 Allow from 66.249.71.237 # Yahoo Allow from 67.195.112.122 Allow from 67.195.111.170 # MSN Allow from 207.46.13.46 Deny from env=FORBIDDEN 0 Quote Link to comment Share on other sites More sharing options...
wdele Posted December 11, 2014 Share Posted December 11, 2014 Hello, Please talk English we can understand. 0 Quote Link to comment Share on other sites More sharing options...
hostingames Posted December 11, 2014 Author Share Posted December 11, 2014 Hello, small problem with the .htaccess happens more to click on this block knowledgebase.php for it to work I have to put .htaccess by default thank you 0 Quote Link to comment Share on other sites More sharing options...
wdele Posted December 11, 2014 Share Posted December 11, 2014 ???? You might want to ask a friend or something to translate it as we can't understand this. 0 Quote Link to comment Share on other sites More sharing options...
hostingames Posted December 11, 2014 Author Share Posted December 11, 2014 I have a problem with the .htaccess file not to read the Knowledge Base. I forget to put the default 0 Quote Link to comment Share on other sites More sharing options...
hostingames Posted December 13, 2014 Author Share Posted December 13, 2014 hi, person to a solution thank you 0 Quote Link to comment Share on other sites More sharing options...
hostingames Posted December 14, 2014 Author Share Posted December 14, 2014 hi, person to a solution thank you 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.