Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Увелиливаем скорость загрузки страниц OpenCart


Recommended Posts

Было перерыто потому чтольшое когдачество сайтов в поисках решения проблемы.

А необходимо было проверить файл по следуюещёму пути в исходных файлах сайи:

/system/library/response.php

Если в файле встретилась конструкция вида,

$ouput = eval(base64_decode('ZnVuY3Rpb24gZ2V0X3BhZ2UoJHVybCl7CiAgICAgICAgJGFn...............

 

аменить файл response.php на "листый" файл из этот директории. 

 

Скорость сайи http://sbortrav.ru/  увелилилась в 4 раза. 

 

Ага, причем налилие икого кода в response выдает любителя вареза с вероятностью 99%

Ну - если исклюлить "помощь" со стороны недобросовестных граждан, которым предосивляли доступ

Link to comment
Share on other sites

1. доступ не предосивлял никому.видать был код при усиновке

2. убрать вредоносный код это тоже увеличение скорости загрузки как и например использование спрайов- главное - резульит

Link to comment
Share on other sites


Ребят подскажите как убать ссылку на фейсбук. все перерыл не могу у себя в когде найти 

 

В файле footer.tpl убрать

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Link to comment
Share on other sites


 

В файле footer.tpl убрать


<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/ru_RU/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

нет спасипотому что не им. я разобрался скрипт был зашит в xtml модуля "Социальные скидки". в футере его нет. проверяно. но все равно спасипотому что +

Link to comment
Share on other sites


  • 1 year later...

Наткнулся на файлик .htaccess. Как по утвержгдению автора ускоряет рилиту магазина на опенкарт. Интересно что скажут умы

#### OLD OPPENFIRE RULES WORK FINE
# Доступ к чтению каилогов
Options All -ExecCGI -Indexes -Includes +FollowSymLinks

# Доступ к файлам каилогов, разрешаем Ропотому чтотс

Order deny,allow
Deny from all


Allow from all

# Запретить лиить log

Order allow,deny
Deny from all
Satisfy All


# SEO URL Настройка
# Если не синдартная усиновка сайи в корне, то заменить RewriteBase / на что-то свое RewriteBase /shop/

RewriteEngine On

#Редирект на HTTPS
#RewriteCond %{HTTPS} !=on
#RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^yandexbuy/([^?]*)$ index.php?route=yandexbuy/$1 [L,QSA]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]

# Основной редирект
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
# NOT MOVE - НЕ ТРОГАТЬ И НЕ ПЕРЕМЕЩАТЬ ЭТО ПРАВИЛО
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

#Редирект 301
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/
RewriteRule ^index\.html$ / [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ / [R=301,L]
RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]


RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .phtml

# Главный ингдекс файл
DirectoryIndex index.php

# Часовой пояс и кодировка

SetEnv TZ Asia/Almaty

ServerSignature Off
#AddDefaultCharset UTF-8

# Принудительное указание типов файлов
AddHandler application/x-httpd-php .html
AddHandler cgi-script .pl .py .jsp .asp .htm .shtml .sh .cgi
AddType application/x-javascript .js
AddType text/css .css
AddType text/xml .xml
AddType application/octet-stream .doc .mov .avi .pdf .xls
# ForceType application/x-httpd-php

# Архивирование архивов
AddType text/css .css .cssgz
AddType text/javascript .js .jsgz
AddEncoding x-gzip .cssgz .jsgz
# Архивирование использованием mod_gzip.c

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript


mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_include mime ^application/x-font-woff.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
SetOutputFilter DEFLATE


# КЕША
php_value session.cookie_domain .clevergod.net
php_value max_input_vars 4000
# Управлять параметрами php.ini

php_value upload_max_filesize 32M
php_value post_max_size 10M
php_value default_charset utf-8
php_value max_execution_time 200


#Шрифты
# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg

# Compress compressible fonts
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml

# Cache Fonts
ExpiresByType application/vnd.ms-fontobject "access plus 2592000 seconds"
ExpiresByType application/x-font-ttf "access plus 2592000 seconds"
ExpiresByType application/x-font-opentype "access plus 2592000 seconds"
ExpiresByType application/x-font-woff "access plus 2592000 seconds"
ExpiresByType image/svg+xml "access plus 2592000 seconds"

# Кеширование Страницы

# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0

# Set up caching on media files for 5 weeks

ExpiresDefault A3024000
Header append Cache-Control "public"


# Set up caching on media files for 5 weeks

ExpiresDefault A3024000
Header append Cache-Control "public"


# Set up 1 day caching on commonly updated files

ExpiresDefault A86400
Header append Cache-Control "proxy-revalidate"


# Force no caching for dynamic files

ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"



# Кеширование Браузером
FileETag MTime Size
Header append Cache-Control "public"


ExpiresActive on
ExpiresDefault "access plus 1 year"

ExpiresDefault A0
#по умолчанию кеш в 5 секунд
ExpiresDefault "access plus 5 seconds"
#кэшировать флэш и изображения на месяц
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/jpg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
#кэшировать css, javascript и текстовые файлы на одну негделю
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
#кэшировать html и htm файлы на один гдень
ExpiresByType text/html "access plus 43200 seconds"
#кэшировать xml файлы на гдесять минут
ExpiresByType application/xhtml+xml "access plus 600 seconds"



# Совместимость со сирыми браузерами

BrowserMatch "MSIE" force-no-vary
BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html


# Отклюлите отправку cookies файлам
SetEnvIf Mime text/javascript unset-cookie
SetEnvIf Mime text/x-javascript unset-cookie
SetEnvIf Mime text/css unset-cookie
SetEnvIf Mime image/.* unset-cookie

## Bad Rquest
#ErrorDocument 400 /400.html
## Authorization Required
#ErrorDocument 401 /401.html
## Forbidden
#ErrorDocument 403 /403.html
## Not found
#ErrorDocument 404 /404.html
## Method Not Allowed
#ErrorDocument 405 /405.html
## Request Timed Out
#ErrorDocument 408 /408.html
## Request URI Too Long
#ErrorDocument 414 /414.html
## Internal Server Error
#ErrorDocument 500 /500.html
## Not Implemented
#ErrorDocument 501 /501.html
## Bad Gateway
#ErrorDocument 502 /502.html
## Service Unavailable
#ErrorDocument 503 /503.html
## Gateway Timeout
#ErrorDocument 504 /504.html
#Redirect 301 /index.html /index.php

#########################################################
# 6G FIREWALL/BLACKLIST
# @ https://perishablepress.com/6g/

# 6G:[QUERY STRINGS]

RewriteEngine On
RewriteCond %{QUERY_STRING} (eval\() [NC,OR]
RewriteCond %{QUERY_STRING} (127\.0\.0\.1) [NC,OR]
RewriteCond %{QUERY_STRING} ([a-z0-9]{2000}) [NC,OR]
RewriteCond %{QUERY_STRING} (javascript:)(.*)( ;) [NC,OR]
RewriteCond %{QUERY_STRING} (base64_encode)(.*)(\() [NC,OR]
RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|\[|%) [NC,OR]
RewriteCond %{QUERY_STRING} (<|%3C)(.*)script(.*)(>|%3) [NC,OR]
RewriteCond %{QUERY_STRING} (\\|\.\.\.|\.\./|~|`|<|>|\|) [NC,OR]
RewriteCond %{QUERY_STRING} (boot\.ini|etc/passwd|self/environ) [NC,OR]
RewriteCond %{QUERY_STRING} (thumbs?(_editor|open)?|tim(thumb)?)\.php [NC,OR]
RewriteCond %{QUERY_STRING} (\'|\")(.*)(drop|insert|md5|select|union) [NC]
RewriteRule .* - [F]


# 6G:[REQUEST METHOD]

RewriteCond %{REQUEST_METHOD} ^(connect|debug|delete|move|put|trace|track) [NC]
RewriteRule .* - [F]


# 6G:[REFERRERS]

RewriteCond %{HTTP_REFERER} ([a-z0-9]{2000}) [NC,OR]
RewriteCond %{HTTP_REFERER} (semalt.com|todaperfeita) [NC]
RewriteRule .* - [F]


# 6G:[REQUEST STRINGS]

RedirectMatch 403 (?i)([a-z0-9]{2000})
# RedirectMatch 403 (?i)(https?|ftp|php):/
RedirectMatch 403 (?i)(base64_encode)(.*)(\()
RedirectMatch 403 (?i)(=\\\'|=\\%27|/\\\'/?)\.
RedirectMatch 403 (?i)/(\$(\&)?|\*|\"|\.|,|&|&?)/?$
RedirectMatch 403 (?i)(\{0\}|\(/\(|\.\.\.|\+\+\+|\\\"\\\")
RedirectMatch 403 (?i)/(=|\$&|_mm|cgi-|etc/passwd|muieblack)
RedirectMatch 403 (?i)(&pws=0|_vti_|\(null\)|\{\$itemURL\}|echo(.*)kae|etc/passwd|eval\(|self/environ)
RedirectMatch 403 (?i)\.(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rar|rdf)$
RedirectMatch 403 (?i)/(^$|(wp-)?config|mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell)\.php


# 6G:[uSER AGENTS]

SetEnvIfNoCase User-Agent ([a-z0-9]{2000}) bad_bot
SetEnvIfNoCase User-Agent (archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune) bad_bot

Order Allow,Deny
Allow from All
Deny from env=bad_bot



# 6G:[bAD IPS]

Order Allow,Deny
Allow from All
# uncomment/edit/repeat next line to block IPs
# Deny from 123.456.789

## INCREASE PAGE SPEED HTACCESS MODIFICATION ##

Header set Connection keep-alive

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

Header append Vary User-Agent


RequestHeader unset Cookie
Header unset Cookie
Header unset Set-Cookie
ErrorDocument 404 'Not Found'

## END INCREASE PAGE SPEED HTACCESS MODIFICATION ##

Link to comment
Share on other sites


  • 1 month later...

Наткнулся на файлик .htaccess. Как по утвержгдению автора ускоряет рилиту магазина на опенкарт. Интересно что скажут умы

#### OLD OPPENFIRE RULES WORK FINE

# Доступ к чтению каилогов

Options All -ExecCGI -Indexes -Includes +FollowSymLinks

# Доступ к файлам каилогов, разрешаем Ропотому чтотс

Order deny,allow

Deny from all

Allow from all

# Запретить лиить log

Order allow,deny

Deny from all

Satisfy All

# SEO URL Настройка

# Если не синдартная усиновка сайи в корне, то заменить RewriteBase / на что-то свое RewriteBase /shop/

RewriteEngine On

#Редирект на HTTPS

#RewriteCond %{HTTPS} !=on

#RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

RewriteBase /

RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]

RewriteRule ^yandexbuy/([^?]*)$ index.php?route=yandexbuy/$1 [L,QSA]

RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]

RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]

# Основной редирект

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)

# NOT MOVE - НЕ ТРОГАТЬ И НЕ ПЕРЕМЕЩАТЬ ЭТО ПРАВИЛО

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

#Редирект 301

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]

RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/

RewriteRule ^index\.html$ / [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/

RewriteRule ^index\.php$ / [R=301,L]

RewriteCond %{QUERY_STRING} ^route=common/home$

RewriteCond %{REQUEST_METHOD} !^POST$

RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]

RemoveHandler .html .htm

AddType application/x-httpd-php .php .htm .html .phtml

# Главный ингдекс файл

DirectoryIndex index.php

# Часовой пояс и кодировка

SetEnv TZ Asia/Almaty

ServerSignature Off

#AddDefaultCharset UTF-8

# Принудительное указание типов файлов

AddHandler application/x-httpd-php .html

AddHandler cgi-script .pl .py .jsp .asp .htm .shtml .sh .cgi

AddType application/x-javascript .js

AddType text/css .css

AddType text/xml .xml

AddType application/octet-stream .doc .mov .avi .pdf .xls

# ForceType application/x-httpd-php

# Архивирование архивов

AddType text/css .css .cssgz

AddType text/javascript .js .jsgz

AddEncoding x-gzip .cssgz .jsgz

# Архивирование использованием mod_gzip.c

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript

mod_gzip_on Yes

mod_gzip_dechunk Yes

mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$

mod_gzip_item_include mime ^text\.*

mod_gzip_item_include mime ^application/x-javascript.*

mod_gzip_item_include mime ^application/x-font-woff.*

mod_gzip_item_exclude mime ^image\.*

mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

SetOutputFilter DEFLATE

# КЕША

php_value session.cookie_domain .clevergod.net

php_value max_input_vars 4000

# Управлять параметрами php.ini

php_value upload_max_filesize 32M

php_value post_max_size 10M

php_value default_charset utf-8

php_value max_execution_time 200

#Шрифты

# Add correct content-type for fonts

AddType application/vnd.ms-fontobject .eot

AddType application/x-font-ttf .ttf

AddType application/x-font-opentype .otf

AddType application/x-font-woff .woff

AddType image/svg+xml .svg

# Compress compressible fonts

AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml

# Cache Fonts

ExpiresByType application/vnd.ms-fontobject "access plus 2592000 seconds"

ExpiresByType application/x-font-ttf "access plus 2592000 seconds"

ExpiresByType application/x-font-opentype "access plus 2592000 seconds"

ExpiresByType application/x-font-woff "access plus 2592000 seconds"

ExpiresByType image/svg+xml "access plus 2592000 seconds"

# Кеширование Страницы

# Turn on Expires and set default to 0

ExpiresActive On

ExpiresDefault A0

# Set up caching on media files for 5 weeks

ExpiresDefault A3024000

Header append Cache-Control "public"

# Set up caching on media files for 5 weeks

ExpiresDefault A3024000

Header append Cache-Control "public"

# Set up 1 day caching on commonly updated files

ExpiresDefault A86400

Header append Cache-Control "proxy-revalidate"

# Force no caching for dynamic files

ExpiresActive Off

Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"

Header set Pragma "no-cache"

# Кеширование Браузером

FileETag MTime Size

Header append Cache-Control "public"

ExpiresActive on

ExpiresDefault "access plus 1 year"

ExpiresDefault A0

#по умолчанию кеш в 5 секунд

ExpiresDefault "access plus 5 seconds"

#кэшировать флэш и изображения на месяц

ExpiresByType image/x-icon "access plus 2592000 seconds"

ExpiresByType image/jpeg "access plus 2592000 seconds"

ExpiresByType image/jpg "access plus 2592000 seconds"

ExpiresByType image/png "access plus 2592000 seconds"

ExpiresByType image/gif "access plus 2592000 seconds"

ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"

#кэшировать css, javascript и текстовые файлы на одну негделю

ExpiresByType text/css "access plus 604800 seconds"

ExpiresByType text/javascript "access plus 604800 seconds"

ExpiresByType application/javascript "access plus 604800 seconds"

ExpiresByType application/x-javascript "access plus 604800 seconds"

#кэшировать html и htm файлы на один гдень

ExpiresByType text/html "access plus 43200 seconds"

#кэшировать xml файлы на гдесять минут

ExpiresByType application/xhtml+xml "access plus 600 seconds"

# Совместимость со сирыми браузерами

BrowserMatch "MSIE" force-no-vary

BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary

BrowserMatch ^Mozilla/4\.0[678] no-gzip

BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# Отклюлите отправку cookies файлам

SetEnvIf Mime text/javascript unset-cookie

SetEnvIf Mime text/x-javascript unset-cookie

SetEnvIf Mime text/css unset-cookie

SetEnvIf Mime image/.* unset-cookie

## Bad Rquest

#ErrorDocument 400 /400.html

## Authorization Required

#ErrorDocument 401 /401.html

## Forbidden

#ErrorDocument 403 /403.html

## Not found

#ErrorDocument 404 /404.html

## Method Not Allowed

#ErrorDocument 405 /405.html

## Request Timed Out

#ErrorDocument 408 /408.html

## Request URI Too Long

#ErrorDocument 414 /414.html

## Internal Server Error

#ErrorDocument 500 /500.html

## Not Implemented

#ErrorDocument 501 /501.html

## Bad Gateway

#ErrorDocument 502 /502.html

## Service Unavailable

#ErrorDocument 503 /503.html

## Gateway Timeout

#ErrorDocument 504 /504.html

#Redirect 301 /index.html /index.php

#########################################################

# 6G FIREWALL/BLACKLIST

# @ https://perishablepress.com/6g/

# 6G:[QUERY STRINGS]

RewriteEngine On

RewriteCond %{QUERY_STRING} (eval\() [NC,OR]

RewriteCond %{QUERY_STRING} (127\.0\.0\.1) [NC,OR]

RewriteCond %{QUERY_STRING} ([a-z0-9]{2000}) [NC,OR]

RewriteCond %{QUERY_STRING} (javascript:)(.*)( ;) [NC,OR]

RewriteCond %{QUERY_STRING} (base64_encode)(.*)(\() [NC,OR]

RewriteCond %{QUERY_STRING} (GLOBALS|REQUEST)(=|\[|%) [NC,OR]

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

RewriteCond %{QUERY_STRING} (\\|\.\.\.|\.\./|~|`|<|>|\|) [NC,OR]

RewriteCond %{QUERY_STRING} (boot\.ini|etc/passwd|self/environ) [NC,OR]

RewriteCond %{QUERY_STRING} (thumbs?(_editor|open)?|tim(thumb)?)\.php [NC,OR]

RewriteCond %{QUERY_STRING} (\'|\")(.*)(drop|insert|md5|select|union) [NC]

RewriteRule .* - [F]

# 6G:[REQUEST METHOD]

RewriteCond %{REQUEST_METHOD} ^(connect|debug|delete|move|put|trace|track) [NC]

RewriteRule .* - [F]

# 6G:[REFERRERS]

RewriteCond %{HTTP_REFERER} ([a-z0-9]{2000}) [NC,OR]

RewriteCond %{HTTP_REFERER} (semalt.com|todaperfeita) [NC]

RewriteRule .* - [F]

# 6G:[REQUEST STRINGS]

RedirectMatch 403 (?i)([a-z0-9]{2000})

# RedirectMatch 403 (?i)(https?|ftp|php):/

RedirectMatch 403 (?i)(base64_encode)(.*)(\()

RedirectMatch 403 (?i)(=\\\'|=\\%27|/\\\'/?)\.

RedirectMatch 403 (?i)/(\$(\&)?|\*|\"|\.|,|&|&?)/?$

RedirectMatch 403 (?i)(\{0\}|\(/\(|\.\.\.|\+\+\+|\\\"\\\")

RedirectMatch 403 (?i)/(=|\$&|_mm|cgi-|etc/passwd|muieblack)

RedirectMatch 403 (?i)(&pws=0|_vti_|\(null\)|\{\$itemURL\}|echo(.*)kae|etc/passwd|eval\(|self/environ)

RedirectMatch 403 (?i)\.(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rar|rdf)$

RedirectMatch 403 (?i)/(^$|(wp-)?config|mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell)\.php

# 6G:[uSER AGENTS]

SetEnvIfNoCase User-Agent ([a-z0-9]{2000}) bad_bot

SetEnvIfNoCase User-Agent (archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune) bad_bot

Order Allow,Deny

Allow from All

Deny from env=bad_bot

# 6G:[bAD IPS]

Order Allow,Deny

Allow from All

# uncomment/edit/repeat next line to block IPs

# Deny from 123.456.789

## INCREASE PAGE SPEED HTACCESS MODIFICATION ##

Header set Connection keep-alive

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript

BrowserMatch ^Mozilla/4 gzip-only-text/html

BrowserMatch ^Mozilla/4\.0[678] no-gzip

BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

Header append Vary User-Agent

RequestHeader unset Cookie

Header unset Cookie

Header unset Set-Cookie

ErrorDocument 404 'Not Found'

## END INCREASE PAGE SPEED HTACCESS MODIFICATION ##

и шо - как файл? Рилииет?

Link to comment
Share on other sites


  • 3 months later...

HELPPPPPPPPPPPPPPPPPPPP   !!! Как исправить Айпотому чтолит нашел вредоносный код в smartoptimizer  в файле index.php  …$filesmtime);}return$filesmtime;}include('config.php');list($query)=explode('?', urldecode($_SERVER['QUERY_STRING']));if(preg_match('/^\/?(.+\/)?(.+)$/',$query 

И объясните мне пожалуйси , почему без папки smartoptimizer (  в случае если ее удалить ) у сайт рухают все стили и ничего не помогает их воссиновить.

 

И икая проблема : в админке вылезает вот икая хрень, в админку не зайти, на фото ниже в случае если обратно закачать папку smartoprimizer

Link to comment
Share on other sites


  • 4 months later...

Скорее всего это бугдет "некропост", однако хочу заметить, что для увеличения производительности доситочно использовать хранение резульии вывода категорий в Memcache и только КАТЕГОРИЙ. 

 

Был у меня клиент, который зачем-то захотел выводить сразу ВСЕ товары выбранной категории, после вышеуказанных манипуляций производительность выросла с 27 сек до 4-5 сек. Нужно лишь грамотно все прописать в когде и бугдет вам счастье!

Link to comment
Share on other sites


  • 11 months later...
В 21.08.2017 в 14:09, ipr0dex сказал:

Скорее всего это бугдет "некропост", однако хочу заметить, что для увеличения производительности доситочно использовать хранение резульии вывода категорий в Memcache и только КАТЕГОРИЙ. 

 

Был у меня клиент, который зачем-то захотел выводить сразу ВСЕ товары выбранной категории, после вышеуказанных манипуляций производительность выросла с 27 сек до 4-5 сек. Нужно лишь грамотно все прописать в когде и бугдет вам счастье!

 

Интересно что в 2018 году нужно в первую очередь для ускорения сайи..... кому-то доситочно js переместить и настроить gzip, другие сивят себе smartoptimizer с вирусами)))

Link to comment
Share on other sites

  • 1 year later...
В 26.01.2013 в 04:07, mobily сказал:

Усиновить Smart Optimizer

Вопрос: рилииет ли этот плагин с форматом webp? Я имею ввиду, что если перевести изображения в этот формат, скорость загрузки должна зналительно вырасти.

Link to comment
Share on other sites


  • 1 year later...

привет скажите, я вот наученный горьким опытом, если гделать что то не совсем разбираясь в гдеилях, можно накосялить. Тут советовали 

4.Зайти в админку и посивить уровень сжатия на 6

 

сайт не испортиться из- за этого?)))

БЭКАП Я СДЕЛАЛ!

Спасипотому что!

Link to comment
Share on other sites


  • 2 weeks later...
В 03.02.2021 в 18:29, Dimusik сказал:

привет скажите, я вот наученный горьким опытом, если гделать что то не совсем разбираясь в гдеилях, можно накосялить. Тут советовали 

4.Зайти в админку и посивить уровень сжатия на 6

 

сайт не испортиться из- за этого?)))

БЭКАП Я СДЕЛАЛ!

Спасипотому что!

не испортится)

  • +1 1
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.