Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W Wiki
  • Project overview
    • Project overview
    • Details
    • Activity
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
Collapse sidebar
  • Tutoriais
  • Wiki
  • Wiki
    • Magento
  • Htaccess

Htaccess · Changes

Page history
Update Htaccess authored Feb 11, 2020 by Jonatan Machado's avatar Jonatan Machado
Show whitespace changes
Inline Side-by-side
Showing with 26 additions and 19 deletions
+26 -19
  • Magento/Htaccess.md Magento/Htaccess.md +26 -19
  • No files found.
Magento/Htaccess.md
View page @ 054467b7
...@@ -26,6 +26,15 @@ ...@@ -26,6 +26,15 @@
#### Bloqueio de Bots indesejados que entopem o servidor ##### #### Bloqueio de Bots indesejados que entopem o servidor #####
## Automated HTTP libraries
RewriteCond %{HTTP_USER_AGENT} ^.*(dav.pm/v|libwww-perl|urllib|python-requests|python-httplib2|winhttp.winhttprequest|lwp-request|lwp-trivial|fasthttp|Go-http-client|Java|httplib|httpclient|Zend_Http_Client).*$ [NC]
RewriteRule .* - [F,L]
## Commonly seen in DDoS attacks
RewriteCond %{HTTP_USER_AGENT} ^.*(CtrlFunc|w00tw00t|Apachebench).*$ [NC]
RewriteRule .* - [F,L]
RewriteCond %{HTTP_USER_AGENT} MJ12bot RewriteCond %{HTTP_USER_AGENT} MJ12bot
RewriteRule .* - [F] RewriteRule .* - [F]
RewriteCond %{HTTP_USER_AGENT} 80legs [NC] RewriteCond %{HTTP_USER_AGENT} 80legs [NC]
...@@ -41,8 +50,6 @@ ...@@ -41,8 +50,6 @@
##### Configuração padrão do php do projeto ##### ##### Configuração padrão do php do projeto #####
<IfModule mod_php5.c> <IfModule mod_php5.c>
php_value memory_limit 512M
php_value max_execution_time 18000
php_flag magic_quotes_gpc off php_flag magic_quotes_gpc off
php_flag session.auto_start off php_flag session.auto_start off
php_flag suhosin.session.cryptua off php_flag suhosin.session.cryptua off
...@@ -59,10 +66,10 @@ ...@@ -59,10 +66,10 @@
RewriteRule ^downloader/ - [L,R=403] RewriteRule ^downloader/ - [L,R=403]
##Forçar o uso do www ##Forçar o uso do www
#RewriteCond %{HTTP_HOST} !="" RewriteCond %{HTTP_HOST} !=""
#RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteCond %{HTTPS}s ^on(s)| RewriteCond %{HTTPS}s ^on(s)|
#RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
##Reescreva as chamadas da API2 para api.php (agora é apenas REST) ##Reescreva as chamadas da API2 para api.php (agora é apenas REST)
......
Clone repository
  • Gitlab
    • Comandos
  • Hotfix
    • og:image
  • Magento
    • Htaccess
    • MagentoCronChecker
    • Robots
    • SimpleSchema
    • Soap v2 Tester
    • gitignore
  • Migração
    • leg.br
  • Padrões
    • eslint
    • prettier
  • Plugins
    • Adicionar informações extras ao texto copiado da web
  • QueryCommerce
  • Servidores
    • Cloudways
    • DnsMadeEasy
View All Pages