{"id":175303,"date":"2013-04-03T15:38:05","date_gmt":"2013-04-03T11:38:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=175303"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=175303","title":{"rendered":"<span class=\"post_title\">HotSpot \u0432 Mikrotik, \u0438\u043b\u0438 \u043a\u0430\u043a \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c $: \u0427\u0430\u0441\u0442\u044c 2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u041e\u0431\u0449\u0438\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u042d\u0442\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438, \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f OS Mikrotik, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 HotSpot \u0442\u043e\u0447\u043a\u0438. \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HotSpot, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0434\u0430\u0447\u0438 \u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043a\u0430\u0440\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u041e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"http:\/\/nix.khd.ru\/?p=2141\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0417\u0430\u0434\u0430\u0447\u0438 \u0438 \u0446\u0435\u043b\u0438<\/h4>\n<p>  \u041d\u0430\u0448\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0431\u044b, \u043d\u0430 \u0441\u0432\u043e\u0435\u043c HotSpot&#8217;\u0435 \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443, \u043d\u0430 \u0432\u0441\u0435 \u0441\u0430\u0439\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c. <\/p>\n<h4>\u0421\u0442\u0440\u043e\u0438\u0442\u044c, \u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u043c\u0430\u0441\u0442\u0435\u0440\u0438\u0442\u044c: Mikrotik<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0439 HotSpot \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0435:<\/p>\n<pre><code class=\"bash\">\/ip firewall nat add action=dst-nat chain=hs-auth comment=&quot;hotspot redirect to proxy&quot; \\ disabled=no dst-port=80 in-interface=!e2_v454 protocol=tcp to-addresses=\\ XX.XX.XX.XX to-ports=3120 place-before=0 <\/code><\/pre>\n<p>  \u0433\u0434\u0435 XX.XX.XX.XX \u2014 ip \u0430\u0434\u0440\u0435\u0441 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, <br \/>  3120 \u2014 \u043f\u043e\u0440\u0442 \u043f\u0440\u043e\u043a\u0441\u0438.<\/p>\n<p>  \u042d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0430 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043c\u043e\u0434\u0435\u0440\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043d\u0430\u0448\u0438 \u043d\u0443\u0436\u0434\u044b.<\/p>\n<h4>\u0421\u0442\u0440\u043e\u0438\u0442\u044c, \u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u043c\u0430\u0441\u0442\u0435\u0440\u0438\u0442\u044c: \u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440<\/h4>\n<p>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Centos 5.4. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0432 iptables:<\/p>\n<pre><code class=\"bash\">#proxy -A VZ_INPUT -p tcp -m tcp --dport 3120 -j ACCEPT <\/code><\/pre>\n<p>  \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043d\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0444\u0438\u043b\u044c\u0442\u0440\u0430, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445 \u043a\u0430\u043a \u0443 \u043c\u0435\u043d\u044f, \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/sysconfig\/iptables:<\/p>\n<pre><code class=\"bash\">:OUTPUT DROP [0:0] :VZ_FORWARD - [0:0] :VZ_INPUT - [0:0] :VZ_OUTPUT - [0:0] -A INPUT -j VZ_INPUT. -A FORWARD -j VZ_FORWARD. -A OUTPUT -j VZ_OUTPUT. <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <b>Privoxy<\/b>, \u043e\u043d \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439.<br \/>  \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u043e\u0438\u0445 \u043e\u043f\u044b\u0442\u043e\u0432 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b perl \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"http:\/\/search.cpan.org\/~book\/HTTP-Proxy-0.29\/lib\/HTTP\/Proxy.pm\">HTTP::Proxy<\/a>, \u043e\u0434\u043d\u0430\u043a\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u043d\u0430 \u043a\u0440\u0430\u0439\u043d\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e, \u0437\u0430\u0447\u0435\u043c \u043e\u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e, \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0442\u0430\u043a \u0438 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0433\u0430\u0434\u043a\u043e\u0439.<\/p>\n<pre><code class=\"bash\">#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0438 mkdir \/usr\/local\/proxy mkdir \/usr\/local\/proxy\/privoxy cd \/usr\/local\/proxy\/privoxy #\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c wget http:\/\/downloads.sourceforge.net\/project\/ijbswa\/Sources\/3.0.21%20%28stable%29\/privoxy-3.0.21-stable-src.tar.gz #\u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c tar xvf privoxy-3.0.21-stable-src.tar.gz cd privoxy-3.0.21-stable make #\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 bin \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0443\u0436\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 mkdir \/usr\/local\/proxy\/privoxy\/bin\/ <\/code><\/pre>\n<p>  \u0418 \u0442\u0430\u043a \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<pre><code class=\"bash\">templates config logfile match-all.action privoxy run.sh user.action user.filter <\/code><\/pre>\n<p>  \u0412 \u043f\u0430\u043f\u043a\u0435 templates, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<pre><code class=\"bash\">blocked cgi-error-404 cgi-error-bad-param cgi-error-disabled cgi-error-file cgi-error-file-read-only cgi-error-modified cgi-error-parse connect-failed connection-timeout forwarding-failed no-server-data no-such-domain <\/code><\/pre>\n<p>  \u0410 \u0442\u0430\u043a \u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435(\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <b>Privoxy<\/b> \u0432\u044b\u0434\u0430\u0435\u0442 \u043a\u0443\u0447\u0443 \u043b\u0438\u0448\u043d\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0443), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b <i>blocked<\/i>, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"html\">&lt;html&gt;&lt;head&gt; &lt;title&gt;This Page is Blocked&lt;\/title&gt; &lt;\/head&gt;&lt;body&gt; &lt;h1&gt;Not Found&lt;\/h1&gt; &lt;p&gt;The requested URL @protocol@@hostport@@path@ was blocked on this server.&lt;\/p&gt; &lt;\/body&gt;&lt;\/html&gt; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u2014 <i>run.sh<\/i>:  <\/p>\n<pre><code class=\"bash\">#!\/bin\/sh  killall -9 privoxy .\/privoxy <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c <i>\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e<\/i> \u0435\u0433\u043e \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443(\u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 service), \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0442\u0440\u043e\u0447\u043a\u0443<br \/>  <code>\/usr\/local\/proxy\/privoxy\/bin\/run.sh<\/code> <br \/>  \u0432 \u0444\u0430\u0439\u043b \/etc\/rc.d\/rc.local<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430: Privoxy<\/h4>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438.<\/p>\n<p>  <b>config<\/b>:  <\/p>\n<pre><code class=\"bash\">confdir . logdir . actionsfile user.action      # \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 filterfile user.filter      # \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 logfile logfile #\u043b\u043e\u0433 \u0444\u0430\u0439\u043b listen-address  XX.XX.XX.XX:3120 #\u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u0438 \u043f\u043e\u0440\u0442 accept-intercepted-requests 1 #\u0432\u0430\u0436\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u0431\u0435\u0437 \u043d\u0435\u0451 \u043f\u0440\u043e\u043a\u0441\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b #\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e toggle  1 enable-remote-toggle  0 enable-remote-http-toggle  0 enable-edit-actions 0 enforce-blocks 0 buffer-limit 4096 forwarded-connect-retries  0 allow-cgi-request-crunching 0 split-large-forms 0 keep-alive-timeout 5 socket-timeout 300 debug 12289 <\/code><\/pre>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0444\u0430\u0439\u043b <b>user.action<\/b>:  <\/p>\n<pre><code class=\"bash\">{+filter{inc_jsc} +filter{main_div_gl}} # \u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u044b inc_jsc \u0438 main_div_gl \u043a\u043e \u0432\u0441\u0435\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u043c \/  {-filter{open-link-in-self-frame} -filter{main_div_gl}} # \u0411\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0441\u043b\u0435\u0434. \u0430\u0434\u0440\u0435\u0441\u043e\u0432(\u0437\u0430\u0447\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 google \u0432 \u0441\u0430\u043c google) .ad.doubleclick.net .ads.r.us\/banners\/ .google .googles. .googles .googleads. .doubleclick. .gstat. <\/code><\/pre>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <b>user.filter<\/b>:   <\/p>\n<pre><code class=\"bash\">FILTER: inc_jsc #\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u0442\u0435\u0433 head \u0434\u0432\u0430 js \u0444\u0430\u0439\u043b\u0430, \u043e\u0434\u0438\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 jquery, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0448 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 s@&lt;head&gt;@$&&lt;script type=&quot;text\\\/javascript&quot; src=&quot;http:\\\/\\\/lk.blablabla.ru\\\/js\\\/jquery.min.js&quot;&gt;&lt;\\\/script&gt;&lt;script type=&quot;text\\\/javascript&quot; src=&quot;http:\\\/\\\/lk.blablabla.ru\/jscript&quot;&gt;&lt;\\\/script&gt;@sigx  FILTER: main_div_gl Add bottom baner s@&lt;\/body(\\s+\\w+(\\s*=\\s*(\\w+|'[^']*'|&quot;[^&quot;]*&quot;))?)*\\s*&gt;@&lt;div align=&quot;center&quot; id=&quot;div_m_gl&quot; style=&quot;display: none;&quot;&gt;\\n&lt;script type=&quot;text\\\/javascript&quot;&gt;\\n &lt;!-- \\n google_ad_client = &quot;ca-pub-YYYYYYYYYYYYYYYYYYY&quot;;\\n google_ad_slot = &quot;MMMMMMMMMM&quot;; \\n google_ad_width = 728; \\n google_ad_height = 15; \\n \\\/\\\/--&gt; \\n &lt;\\\/script&gt; \\n &lt;script type=&quot;text\\\/javascript&quot; src=&quot;http:\\\/\\\/pagead2.googlesyndication.com\\\/pagead\\\/show_ads.js&quot;&gt;&lt;\\\/script&gt;&lt;\\\/div&gt;$&@sigx <\/code><\/pre>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u043e\u043a\u0430\u0436\u0443 \u0444\u0430\u0439\u043b <b>lk.blablabla.ru\/jscript<\/b>, \u043e\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0430\u0434\u0440\u0435\u0441\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0438\u043b\u0438 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443, \u0431\u043e\u043b\u0435\u0435 \u044d\u0442\u043e\u0433\u043e \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439, \u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043a\u0430\u0437 \u0440\u0435\u043a\u043b\u0430\u043c\u044b(\u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u043a \u043f\u043e\u043a\u0430\u0437\u0443 \u0440\u0435\u043a\u043b\u0430\u043c\u044b \u0441\u0430\u0439\u0442\u043e\u0432, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0435\u0445 \u043a\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u043d\u044b\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u0438 \u0442. \u0434.) \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044f \u043f\u0440\u043e\u043a\u0441\u0438 \u0441\u0435\u0440\u0432\u0435\u0440:<\/p>\n<pre><code class=\"javascript\">$(document).ready(function() {      var view = 1; var arr_links = ['blabla.ru', 'bla.ru', 'file']  \/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443, \u043c\u0430\u043b\u043e \u043b\u0438, \u043c\u043e\u0436\u0435\u0442 \u0441\u0430\u0439\u0442 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0439 var a = document.URL; for (var i in arr_links) {     var re = new RegExp(arr_links[i], 'i');     if (a.match(re)) {     \tview = 0;     }      } \/\/\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0435\u043a\u043b\u0430\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 if (view) {             \tvar state = 'block'; \tvar layer_ref = 'div_m_gl'; \tif (document.all) { \/\/IS IE 4 or 5 (or 6 beta) \t\teval( &quot;document.all.&quot; + layer_ref + &quot;.style.display = state&quot;); \t} \tif (document.layers) { \/\/IS NETSCAPE 4 or below \t\tdocument.layers[layer_ref].display = state; \t} \tif (document.getElementById &&!document.all) { \t\thza = document.getElementById(layer_ref); \t\thza.style.display = state; \t}  }              }); <\/code><\/pre>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c $, \u043d\u0430 \u0441\u0432\u043e\u0435\u043c HotSpot \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u0441\u0435\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u043e\u0441\u043d\u043e\u0432\u0435 \u0441 \u043d\u0435\u043d\u0430\u0432\u044f\u0437\u0447\u0438\u0432\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0439, \u0441\u0430\u043c\u043e\u0433\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0430. \u0410 \u0442\u0430\u043a \u0436\u0435 \u043f\u0440\u0438\u043b\u0430\u0433\u0430\u044e \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432, \u043e\u0442\u043a\u0443\u0434\u0430 \u044f \u0447\u0435\u0440\u043f\u0430\u043b \u0437\u043d\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  <a href=\"http:\/\/nix.khd.ru\/?p=2141\">HotSpot \u0432 Mikrotik, \u0438\u043b\u0438 \u043a\u0430\u043a \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c $: \u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/search.cpan.org\/~book\/HTTP-Proxy-0.29\/lib\/HTTP\/Proxy.pm\">HTTP::Proxy<\/a> \u2014 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f proxy \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 Perl<br \/>  <a href=\"http:\/\/www.privoxy.org\/user-manual\/index.html\">Privoxy Official manual<\/a><br \/>  <a href=\"http:\/\/wiki.mikrotik.com\/wiki\/Manual:Customizing_Hotspot\">Mikrotik Customizing Hotspot<\/a> \u2014 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0435\u0433\u043e HotSpot \u043d\u0430 Mikrotik<br \/>  <a href=\"http:\/\/wiki.mikrotik.com\/wiki\/Manual:IP\/Firewall\/NAT\">Mikrotik IP Firewall Nat<\/a><br \/>  <habracut\/><br \/>  <a href=\"http:\/\/greignar.blogspot.ru\/2010\/03\/privoxy.html\">Privoxy RegExp<\/a> \u2014 \u0425\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c<br \/>  <a href=\"http:\/\/wiki.centos.org\/HowTos\/Network\/IPTables\">Centos Iptables Official manual<\/a><\/p>\n<p>  P.S&gt;\u041e\u0447\u0435\u043d\u044c \u0436\u0434\u0443 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432, \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/175303\/\"> http:\/\/habrahabr.ru\/post\/175303\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u041e\u0431\u0449\u0438\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u042d\u0442\u043e \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438, \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f OS Mikrotik, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 HotSpot \u0442\u043e\u0447\u043a\u0438. \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c HotSpot, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043b \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0434\u0430\u0447\u0438 \u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043a\u0430\u0440\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u041e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"http:\/\/nix.khd.ru\/?p=2141\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-175303","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/175303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175303"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/175303\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}