<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://support.qbpro.ru/index.php?action=history&amp;feed=atom&amp;title=.htaccess_php-malware-protection.txt</id>
	<title>.htaccess php-malware-protection.txt - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://support.qbpro.ru/index.php?action=history&amp;feed=atom&amp;title=.htaccess_php-malware-protection.txt"/>
	<link rel="alternate" type="text/html" href="https://support.qbpro.ru/index.php?title=.htaccess_php-malware-protection.txt&amp;action=history"/>
	<updated>2026-04-03T23:27:06Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.38.1</generator>
	<entry>
		<id>https://support.qbpro.ru/index.php?title=.htaccess_php-malware-protection.txt&amp;diff=3287&amp;oldid=prev</id>
		<title>imported&gt;Vix в 00:46, 11 мая 2022</title>
		<link rel="alternate" type="text/html" href="https://support.qbpro.ru/index.php?title=.htaccess_php-malware-protection.txt&amp;diff=3287&amp;oldid=prev"/>
		<updated>2022-05-11T00:46:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 03:46, 11 мая 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Строка 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* '''Apache:'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;hr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;hr&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; line='line'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; line='line'&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key pgdb4support-mediawiki-:diff::1.12:old-3286:rev-3287 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Vix</name></author>
	</entry>
	<entry>
		<id>https://support.qbpro.ru/index.php?title=.htaccess_php-malware-protection.txt&amp;diff=3286&amp;oldid=prev</id>
		<title>imported&gt;Vix: Новая страница: «&lt;hr&gt; &lt;syntaxhighlight lang=&quot;shell&quot; line='line'&gt; ... # Блокировка XSS RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR] # Блокируем...»</title>
		<link rel="alternate" type="text/html" href="https://support.qbpro.ru/index.php?title=.htaccess_php-malware-protection.txt&amp;diff=3286&amp;oldid=prev"/>
		<updated>2022-05-11T00:46:04Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «&amp;lt;hr&amp;gt; &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; line=&amp;#039;line&amp;#039;&amp;gt; ... # Блокировка XSS RewriteCond %{QUERY_STRING} (\&amp;lt;|%3C).*script.*(\&amp;gt;|%3E) [NC,OR] # Блокируем...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;hr&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; line='line'&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
# Блокировка XSS&lt;br /&gt;
RewriteCond %{QUERY_STRING} (\&amp;lt;|%3C).*script.*(\&amp;gt;|%3E) [NC,OR]&lt;br /&gt;
# Блокируем выставление переменной PHP GLOBALS через URL&lt;br /&gt;
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]&lt;br /&gt;
# Блокируем возможность изменять переменную _REQUEST через URL&lt;br /&gt;
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})&lt;br /&gt;
&lt;br /&gt;
# Блокировка MySQL инъекций, RFI, base64, и др.&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http:// [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(\.\.//?)+ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} \=PHP[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (\.\./|\.\.) [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ftp\: [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} http\: [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} https\: [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} \=\|w\| [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^(.*)/self/(.*)$ [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^(.*)cPath=http://(.*)$ [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (\&amp;lt;|%3C).*script.*(\&amp;gt;|%3E) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^s]*s)+cript.*(&amp;gt;|%3E) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (\&amp;lt;|%3C).*iframe.*(\&amp;gt;|%3E) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (&amp;lt;|%3C)([^i]*i)+frame.*(&amp;gt;|%3E) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} base64_(en|de)code[^(]*\([^)]*\) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|&amp;lt;|&amp;gt;).* [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (NULL|OUTFILE|LOAD_FILE) [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (\./|\../|\.../)+(motd|etc|bin) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (&amp;lt;|&amp;gt;|'|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} concat[^\(]*\( [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} union([^s]*s)+elect [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} union([^a]*a)+ll([^s]*s)+elect [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (;|&amp;lt;|&amp;gt;|'|&amp;quot;|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|drop|delete|update|cast|create|char|convert|alter|declare|order|script|set|md5|benchmark|encode) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (\\|\.\.\.|\.\./|~|`|&amp;lt;|&amp;gt;|\|) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (boot\.ini|etc/passwd|self/environ) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (thumbs?(_editor|open)?|tim(thumb)?)\.php [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (sp_executesql) [NC]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (eval\() [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} (127\.0\.0\.1) [NC,OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ([a-z0-9]{2000,}) [NC,OR]&lt;br /&gt;
RewriteRule ^(.*)$ - [F,L]&lt;br /&gt;
&lt;br /&gt;
# Отклонение запросов TRACE|TRACK&lt;br /&gt;
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)  &lt;br /&gt;
RewriteRule .* - [F]&lt;br /&gt;
&lt;br /&gt;
# Фильтрация URL на служебные символы&lt;br /&gt;
RewriteCond %{QUERY_STRING} (&amp;lt;|&amp;gt;|'|\+|%2B|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]&lt;br /&gt;
&lt;br /&gt;
# Блокировка известных Shell&lt;br /&gt;
RewriteEngine on&lt;br /&gt;
RewriteCond %{REQUEST_URI} .*((php|my)?shell|remview.*|phpremoteview.*|sshphp.*|pcom|nstview.*|c99|r57|webadmin.*|phpget.*|phpwriter.*|fileditor.*|locus7.*|storm7.*).(p?s?x?htm?l?|txt|aspx?|cfml?|cgi|pl|php[3-9]{0,1}|jsp?|sql|xml) [NC,OR]&lt;br /&gt;
RewriteCond %{REQUEST_METHOD} (GET|POST) [NC]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^(.*)=(/|%2F)(h|%68|%48)(o|%6F|%4F)(m|%6D|%4D)(e|%65|%45)(.+)?(/|%2F)(.*)(/|%2F)(.*)$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^work_dir=.*$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^command=.*&amp;amp;output.*$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^nts_[a-z0-9_]{0,10}=.*$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^c=(t|setup|codes)$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^act=((about|cmd|selfremove|chbd|trojan|backc|massbrowsersploit|exploits|grablogins|upload.*)|((chmod|f)&amp;amp;f=.*))$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^act=(ls|search|fsbuff|encoder|tools|processes|ftpquickbrute|security|sql|eval|update|feedback|cmd|gofile|mkfile)&amp;amp;d=.*$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^&amp;amp;?c=(l?v?i?&amp;amp;d=|v&amp;amp;fnot=|setup&amp;amp;ref=|l&amp;amp;r=|d&amp;amp;d=|tree&amp;amp;d|t&amp;amp;d=|e&amp;amp;d=|i&amp;amp;d=|codes|md5crack).*$ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^(.*)([-_a-z]{1,15})=(chmod|chdir|mkdir|rmdir|clear|whoami|uname|unzip|gzip|gunzip|grep|more|umask|telnet|ssh|ftp|head|tail|which|mkmode|touch|logname|edit_file|search_text|find_text|php_eval|download_file|ftp_file_down|ftp_file_up|ftp_brute|mail_file|mysql|mysql_dump|db_query)([^a-zA-Z0-9].+)*$ [OR]&lt;br /&gt;
# Удалите из слудующей строки слово &amp;quot;system&amp;quot; для нормальной работы информационных систем HostCMS&lt;br /&gt;
RewriteCond %{QUERY_STRING} ^(.*)(wget|shell_exec|passthru|system|exec|popen|proc_open)(.*)$&lt;br /&gt;
RewriteRule .* - [F]&lt;br /&gt;
&lt;br /&gt;
# Отклонение плохо сформированных запросов HTTP&lt;br /&gt;
RewriteEngine on&lt;br /&gt;
RewriteCond %{THE_REQUEST} !^[A-Z]{3,9} .+ HTTP/(0.9|1.0|1.1) [NC]&lt;br /&gt;
RewriteRule .* - [F,NS,L]&lt;br /&gt;
&lt;br /&gt;
# Запрет любых запросов кроме GET,PROPFIND,POST,OPTIONS,PUT,HEAD&lt;br /&gt;
RewriteEngine on&lt;br /&gt;
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|POST|PROPFIND|OPTIONS|PUT)$ [NC]&lt;br /&gt;
RewriteRule .* - [F,NS,L]&lt;br /&gt;
&lt;br /&gt;
# Блокировка от LFi-атак (экспериментальное, см. комментарии)&lt;br /&gt;
RewriteCond %{REQUEST_METHOD} GET&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http:// [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http%3A%2F%2F [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(..//?)+ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC]&lt;br /&gt;
RewriteRule .* - [F]&lt;br /&gt;
@geepis&lt;br /&gt;
&lt;br /&gt;
# Для защиты от LFi атак&lt;br /&gt;
RewriteCond %{REQUEST_METHOD} GET&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http:// [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http%3A%2F%2F [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(..//?)+ [OR]&lt;br /&gt;
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC]&lt;br /&gt;
RewriteRule .* - [F]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [https://gist.github.com/r3code/35b9e7f5a7ac8f44c265f07e37eb3c87 источник]&lt;/div&gt;</summary>
		<author><name>imported&gt;Vix</name></author>
	</entry>
</feed>