{"id":216209,"date":"2014-03-18T12:18:03","date_gmt":"2014-03-18T08:18:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=216209"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=216209","title":{"rendered":"<span class=\"post_title\">\u0417\u0430\u043a\u043e\u043d \u2116193-\u0424\u0417: \u0432\u0437\u0433\u043b\u044f\u0434 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u043a \u043c\u043e\u0435\u043c\u0443 \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c\u0443 (\u043f\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0432 \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u043e\u043c, \u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u043f\u043d\u043e\u043c \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0435) \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0438\u0437 \u0420\u043e\u0441\u043a\u043e\u043c\u043d\u0430\u0434\u0437\u043e\u0440\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u0430 \u0432\u0438\u0434, \u0447\u0442\u043e \u043f\u043e IP \u043e\u043d, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b, \u043d\u043e \u043f\u043e URL \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0430\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0442, \u0430 \u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u043c \u0442\u043e\u0442 \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u0422\u043e\u0432\u0430\u0440\u0438\u0449 \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u043d\u0430 \u0441\u0443\u0434\u044c\u0431\u0443, \u0437\u0430\u043e\u0434\u043d\u043e \u043d\u0430\u043c\u0435\u043a\u043d\u0443\u0432, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043b\u0438\u0447\u043d\u043e \u0435\u0433\u043e \u0443\u0436\u0435 \u0448\u0442\u0440\u0430\u0444\u043e\u0432\u0430\u043b\u0438 \u0437\u0430 \u043d\u0435\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u2116 139-\u0424\u0417.<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0443 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f:  <\/p>\n<ul>\n<li>\u0412\u0441\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 (\u043a\u0440\u043e\u043c\u0435 \u043a\u0443\u043f\u0438\u0432\u0448\u0438\u0445 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 IP) \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0437\u0430 NAT;<\/li>\n<li>NAT \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 forwarding \u043d\u0430 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0431\u044b\u0447\u043d\u043e\u043c debian;<\/li>\n<li>\u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c NAT \u0435\u0441\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 iptables;<\/li>\n<li>\u0415\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u0432\u043e\u0438\u0445 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 debian \u0438 PowerDNS.<\/li>\n<\/ul>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0437\u0434\u0443\u043c\u0438\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0433\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e layer 7 filtering \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435, \u0433\u0443\u0433\u043b \u043d\u0430\u043c \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u2014 \u043f\u0440\u0435\u0440\u043e\u0433\u0430\u0442\u0438\u0432\u0430 \u0434\u043e\u0440\u043e\u0433\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, a l7-filter \u0434\u043b\u044f iptables \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0430\u0432\u043d\u043e. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0434\u0443\u043c\u0430\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u0421\u043e squid \u0432 \u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u044b\u0445 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0445 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0430\u0441 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b, \u043e\u0434\u043d\u0430\u043a\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 nginx \u2014 \u043e\u0447\u0435\u043d\u044c \u043c\u043e\u0449\u043d\u044b\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u043c \u0418\u0433\u043e\u0440\u044f \u0421\u044b\u0441\u043e\u0435\u0432\u0430.<\/p>\n<p>  \u041e\u0431\u0449\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u043b\u0430 \u0432\u044b\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f:  <\/p>\n<ul>\n<li>iptables \u043d\u0430 NAT \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 DNS-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u043d\u0430\u0448 DNS-\u0441\u0435\u0440\u0432\u0435\u0440;<\/li>\n<li>DNS-\u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u043e\u043d\u044b \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043d\u0435 \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 recursor;<\/li>\n<li>\u042d\u0442\u0438 \u0437\u043e\u043d\u044b \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 nginx.<\/li>\n<\/ul>\n<p>  \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e nginx \u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u043e\u043d \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438: \u0432 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u0445 \u0420\u043e\u0441\u043a\u043e\u043c\u043d\u0430\u0434\u0437\u043e\u0440\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0430 3 \u0440\u0430\u0437\u0430 \u0432 \u0441\u0443\u0442\u043a\u0438. \u0422\u0430\u043a\u0436\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u0435\u043d \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e HTTPS \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043b\u0438\u0431\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c, \u043b\u0438\u0431\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c, \u043d\u043e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0438\u043d\u0430\u0447\u0435 \u0442\u0440\u0430\u0444\u0438\u043a \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448 nginx \u0431\u0443\u0434\u0435\u0442 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d \u0438 \u0441\u0432\u043e\u044e \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e (\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e) \u043e\u043d \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442. \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u0430 \u0440\u0443\u0433\u0430\u043d\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043f\u043e\u043f\u0430\u0434\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 google, \u0430 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d google chrome, \u0442\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043d\u0435 \u043f\u0443\u0441\u0442\u0438\u0442 \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435. \u041d\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043d\u0430\u043a\u043e\u043b\u0435\u043d\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u044b \u0432 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438\u0437\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u043d\u0435 \u0441\u043c\u043e\u0433\u043b\u0438. \u0418\u0442\u0430\u043a, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:  <\/p>\n<ol>\n<li>\u0421\u043a\u0440\u0438\u043f\u0442, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 (\u043e\u0431\u044b\u0447\u043d\u044b\u0439 XML, \u043e\u0442\u0434\u0430\u0435\u0442\u0441\u044f SOAP-\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430, \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430.<\/li>\n<li>\u0421\u043a\u0440\u0438\u043f\u0442, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u043e\u043d \u0432 DNS-\u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/li>\n<li>\u0421\u043a\u0440\u0438\u043f\u0442, \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0438\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f nginx.<\/li>\n<\/ol>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443: \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0441\u0430\u043c\u0438 \u0437\u043d\u0430\u044e\u0442 \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0435\u0435 \u0440\u0430\u0437\u0433\u043b\u0430\u0448\u0430\u0442\u044c \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 (SQL \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0431\u0430\u0437\u043e\u0439 PowerDNS):<\/p>\n<pre><code class=\"bash\">USE pdns;  create temporary table if not exists dump(         domain text );  TRUNCATE TABLE dump;  load data local infile '\/opt\/zapret\/dump.xml' into table dump LINES STARTING BY '&lt;domain&gt;' TERMINATED BY '&lt;\/domain&gt;' (@tmp) SET domain = ExtractValue(@tmp, '\/');  create temporary table if not exists locked(         domain varchar(767) primary key );  TRUNCATE TABLE locked;  INSERT INTO locked SELECT DISTINCT domain FROM dump;  create temporary table if not exists locked1(         domain varchar(767) primary key );  TRUNCATE TABLE locked1;  INSERT INTO locked1 SELECT * FROM locked;  DELETE FROM l USING locked l INNER JOIN locked1 l1 ON l.domain=SUBSTR(l1.domain from 5);  UPDATE locked SET domain=SUBSTR(LCASE(domain) FROM 5) WHERE LEFT(LCASE(domain), 4) = 'www.';  DELETE FROM locked WHERE domain LIKE '%youtube.com' OR domain LIKE '%google.com' OR domain LIKE '%google.ru';  create temporary table if not exists old_locked(         id int,         domain varchar(767) primary key );  TRUNCATE TABLE old_locked;  INSERT INTO old_locked SELECT DISTINCT d.id, d.name as domain FROM domains d INNER JOIN records r ON d.id=r.domain_id WHERE r.content='1.2.3.4' AND d.name NOT LIKE '%provider.ru';  INSERT INTO domains (name, master, last_check, type, notified_serial, account) SELECT n.domain, NULL, NULL, 'NATIVE', NULL, NULL FROM locked n LEFT JOIN old_locked o ON n.domain=o.domain WHERE o.domain IS NULL;  INSERT INTO records (domain_id, name, type, content, ttl, prio, change_date, ordername, auth) SELECT d.id AS domain_id, d.name, 'SOA' as type, 'ns.provider.ru dns.provider.ru 2014022701 28800 7200 604800 86400' as content, 86400 as ttl, 0 as prio, 1393508792 as change_date, '' as ordername, 1 as auth FROM domains d INNER JOIN locked l ON d.name=l.domain LEFT JOIN old_locked o ON d.name=o.domain WHERE o.domain IS NULL;  INSERT INTO records (domain_id, name, type, content, ttl, prio, change_date, ordername, auth) SELECT d.id AS domain_id, CONCAT('*.', d.name), 'A' as type, '1.2.3.4' as content, 86400 as ttl, 0 as prio, 1393508820 as change_date, '' as ordername, 1 as auth FROM domains d INNER JOIN locked l ON d.name=l.domain LEFT JOIN old_locked o ON d.name=o.domain WHERE o.domain IS NULL;  DELETE FROM r, d USING records r INNER JOIN domains d ON r.domain_id=d.id INNER JOIN old_locked o ON d.name=o.domain LEFT JOIN locked l ON o.domain=l.domain WHERE l.domain IS NULL;  <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430\u0434\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c  <\/p>\n<pre><code class=\"bash\"># pdnssec rectify-all-zones <\/code><\/pre>\n<p>  \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b powerdns \u043e\u0441\u043e\u0437\u043d\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0422\u0440\u0435\u0442\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 (\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 blocked):  <\/p>\n<pre><code class=\"php\">&lt;?php  $xml = simplexml_load_file ('\/opt\/zapret\/dump.xml');  $dirty = array();  $excl = array(); $excl[] = 'youtube.com'; $excl[] = 'google.ru'; $excl[] = 'google.com'; $excl[] = 'badsite.org';  foreach($xml as $node) { \tif( strlen( (string)$node-&gt;domain )&gt;0 ) { \t\t$parsed = parse_url((string)$node-&gt;url); \t\tif( $parsed!=false ) { \t\t    if( isset($parsed['path']) ) { \t\t\tif( isset($parsed['scheme']) ) \t\t\t\t$scheme = $parsed['scheme'] . &quot;:\/\/&quot;; \t\t\telse \t\t\t\t$scheme = &quot;http:\/\/&quot;;  \t\t\tif( isset($parsed['port']) ) { \t\t\t\t$port = ':' . $parsed['port']; \t\t\t\tif( $scheme==&quot;https:\/\/&quot; ) $port = $port . &quot; ssl&quot;; \t\t\t\t} \t\t\telse {                                 if( $scheme==&quot;https:\/\/&quot; ) $port = &quot;:443 ssl&quot;; \t\t\t\telse $port = &quot;:80&quot;; \t\t\t}  \t\t\t$port = $port . &quot;;&quot;;  \t\t\t$domain = (string)$node-&gt;domain;  \t\t\tif( strcmp(strtolower(substr($domain, 0, 4)), 'www.') == 0 ) $domain = substr($domain, 4);  \t\t\tif( isset($parsed['query']) ) \t\t\t\t$que = $parsed['query']; \t\t\telse \t\t\t\t$que = '';  \t\t\t$que = str_replace('\\\\E', '\\\\E\\\\\\\\E\\\\Q', $que); \t\t\t$que = '\\\\Q' . $que . '\\\\E'; \t\t\tif ( strcmp($que, '\\\\Q\\\\E')==0 ) \t\t\t\t$que = '';   \t\t\t$path = $parsed['path'];  \t\t\t$path = str_replace('\\\\E', '\\\\E\\\\\\\\E\\\\Q', $path); \t\t\tif ( strcmp($path, '\/')&lt;&gt;0 ) { \t\t\t\t$path = '\\\\Q' . $path . '\\\\E'; \t\t\t\tif ( strcmp($path, '\\\\Q\\\\E')==0 ) \t\t\t\t\t$path = ''; \t\t\t}  \t\t\t$keys = preg_grep('\/' . $domain . '\/', $excl);  \t\t\tif( count($keys)&lt;1 ) \t\t\t\t$dirty[] = array('domain'=&gt;$domain, 'url'=&gt;(string)$node-&gt;url, 'loc'=&gt;$path, 'query'=&gt;$que, 'port'=&gt;$port, 'scheme'=&gt;$scheme); \t\t    } \t\t} \t} }  \/\/ \u0422.\u043a. \u043e\u043d \u0437\u0430\u0431\u0430\u043d\u0435\u043d \u0432\u0435\u0441\u044c, \u0430 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e $dirty[] = array('domain'=&gt;'badsite.org', 'url'=&gt;'badsite.org', 'loc'=&gt;'\/', 'query'=&gt;'', 'port'=&gt;':80;', 'scheme'=&gt;'http:\/\/');  $sort_func = function($obj_1, $obj_2) {     \treturn strnatcasecmp($obj_1['domain'] . $obj_1['url'], $obj_2['domain'] . $obj_2['url']); };  $domains = array_unique($dirty, SORT_REGULAR);  usort($domains, $sort_func);  $old_domain = &quot;&quot;; $old_loc = &quot;&quot;; $wasroot = false; $alldomain = false; $allloc = false;  foreach($domains as $node) { \t$domain = $node['domain']; \t$url = $node['url']; \t$loc = $node['loc']; \t$query = $node['query']; \t$port = $node['port']; \t$scheme = $node['scheme'];  \/\/ echo &quot;\\n1. Root &quot; . (string)$wasroot . &quot;; alldomain &quot; . (string)$alldomain . &quot;; alloc &quot; . (string) $allloc . &quot;; loc '&quot; . $loc . &quot;'; query '&quot; . $query . &quot;'\\n&quot;;  \tif( strcmp($domain, $old_domain) ) { \t\tloc_close( $old_loc, ($alldomain || $wasroot || $allloc)); \t\tdom_close( $old_domain, $wasroot ); \t\tdom_open( $domain, $port, $scheme ); \t\t$old_loc = ''; \t\t$alldomain = false; \t\t$wasroot = false; \t}  \tif( !$alldomain ){ \t\tif( strcmp($loc, $old_loc) ) { \t\t\tloc_close( $old_loc, ($alldomain || $allloc) ); \t\t\tloc_open( $loc ); \t\t\t$allloc = false; \t\t}  \t\tif( strlen($loc)&lt;2 && strlen($query)&gt;0 ) \t\t\t$wasroot = true; \t\tif( strlen($loc)&lt;2 && strlen($query)&lt;1 ) \t\t\t{ $alldomain = true; $wasroot = true; } \t\tif( strlen($query)&lt;1 ) \t\t\t$allloc = true; \t\tif( !$allloc ) \t\t\targs_check( $query ); \t} \/\/ echo &quot;\\n2. Root &quot; . (string)$wasroot . &quot;; alldomain &quot; . (string)$alldomain . &quot;; alloc &quot; . (string) $allloc . &quot;; loc '&quot; . $loc . &quot;'; query '&quot; . $query . &quot;'\\n&quot;;  \t$old_loc = $loc; \t$old_domain = $domain; }  loc_close( $loc, ($alldomain || $wasroot || $allloc) ); dom_close( $domain, $wasroot );   function loc_close( $_loc, $_alldomain ) {     if (strlen($_loc)&gt;0 ) { \tif( $_alldomain ) { ?&gt; \treturn 301 http:\/\/eais.rkn.gov.ru\/; &lt;?php \t} \telse { \/\/if ( strcmp($_loc, '\/')==0 ) { ?&gt;          include \/etc\/nginx\/proxy_params;         if ($args = '') {                 proxy_pass $scheme:\/\/$host$uri;         }         if ($args != '') {                 proxy_pass $scheme:\/\/$host$uri?$args;         } &lt;?php \t} \techo &quot;    } # location\\n&quot;;     } }  function dom_close( $_dom, $_wasroot ) {     if( strlen($_dom)&gt;0 ) { \tif( !$_wasroot ) { ?&gt;      location \/ {         include \/etc\/nginx\/proxy_params;          if ($args = '') {                 proxy_pass $scheme:\/\/$host$uri;         }         if ($args != '') {                 proxy_pass $scheme:\/\/$host$uri?$args;         }     } #root location &lt;?php \t} \techo &quot;} #domain\\n&quot;;     } }  function loc_open( $_loc ) { ?&gt;      location ~* &lt;?php echo $_loc . &quot;* {\\n&quot;; ?&gt; &lt;?php }  function dom_open( $_domain, $_port, $_scheme ) { ?&gt; server {     listen  1.2.3.4&lt;?php echo $_port; \tif( strcmp( $_scheme, 'https:\\\/\\\/' )==0 ) echo ' ssl'; ?&gt;      server_name &lt;?php echo $_domain . &quot; &quot; . &quot;*.&quot; . $_domain . &quot;;\\n&quot;;  }  function args_check( $_query ) {     if ( strlen($_query)&gt;0 ) { \techo &quot;\\t    if (\\$args ~* \\&quot;&quot;;         if(strlen($_query)&gt;0) echo $_query;         echo &quot;*\\&quot;) {\\n&quot;;         echo &quot;\\t\\treturn 301 http:\/\/eais.rkn.gov.ru\/;\\n&quot;; \techo &quot;\\t    } #args\\n&quot;; \t}     else echo &quot;\\treturn 301 http:\/\/eais.rkn.gov.ru\/;\\n&quot;; } ?&gt; <\/code><\/pre>\n<p>  \u041f\u043e \u0438\u0442\u043e\u0433\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0434\u043b\u044f nginx, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0442\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0430\u0434\u0440\u0435\u0441 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d, \u0442\u043e \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 (301) \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 <a href=\"http:\/\/eais.rkn.gov.ru\">eais.rkn.gov.ru<\/a> \u2014 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432.<br \/>   \u0411\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0440\u0435\u0445 \u0442\u0438\u043f\u043e\u0432:<\/p>\n<p>  1. \u0412\u0435\u0441\u044c \u0434\u043e\u043c\u0435\u043d. \u0414\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c:  <\/p>\n<pre><code class=\"bash\">server {     listen  1.2.3.4:80;     server_name badsite.org *.badsite.org;      location ~* \/* {         return 301 http:\/\/eais.rkn.gov.ru\/;     } # location } #domain <\/code><\/pre>\n<p>  2. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 URL \u0432 \u0434\u043e\u043c\u0435\u043d\u0435. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0440\u0443\u0433\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c:  <\/p>\n<pre><code class=\"bash\">server {     listen  1.2.3.4:80;     server_name badsite.hk *.badsite.hk;      location ~* \\Q\/h\/\\E* {         return 301 http:\/\/eais.rkn.gov.ru\/;     } # location      location ~* \\Q\/h\/res\/214.html\\E* {         return 301 http:\/\/eais.rkn.gov.ru\/;     } # location      location \/ {         include \/etc\/nginx\/proxy_params;          if ($args = '') {                 proxy_pass $scheme:\/\/$host$uri;         }         if ($args != '') {                 proxy_pass $scheme:\/\/$host$uri?$args;         }     } #root location } #domain <\/code><\/pre>\n<p>  3. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e URL (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u0432 PHPBB):  <\/p>\n<pre><code class=\"bash\">server {     listen  1.2.3.4:80;     server_name badsite.com *.badsite.com;      location ~* \\Q\/forum\/viewforum.php\\E* {             if ($args ~* &quot;\\Qf=6\\E*&quot;) {                 return 301 http:\/\/eais.rkn.gov.ru\/;             } #args             if ($args ~* &quot;\\Qf=6&start=25\\E*&quot;) {                 return 301 http:\/\/eais.rkn.gov.ru\/;             } #args          include \/etc\/nginx\/proxy_params;         if ($args = '') {                 proxy_pass $scheme:\/\/$host$uri;         }         if ($args != '') {                 proxy_pass $scheme:\/\/$host$uri?$args;         }     } # location      location \/ {         include \/etc\/nginx\/proxy_params;          if ($args = '') {                 proxy_pass $scheme:\/\/$host$uri;         }         if ($args != '') {                 proxy_pass $scheme:\/\/$host$uri?$args;         }     } #root location } #domain&lt; <\/code><\/pre>\n<p>  \u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432 default \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u0440\u043e\u0441 \u0432\u0441\u0435\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u043c (\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439):  <\/p>\n<pre><code class=\"bash\">server {         listen 1.2.3.4:80 default_server;          location \/ {                 include \/etc\/nginx\/proxy_params;                 if ($args = '') {                         proxy_pass $scheme:\/\/$host$uri;                 }                 if ($args != '') {                         proxy_pass $scheme:\/\/$host$uri?$args;                 }         } }  server {         listen 1.2.3.4:443 ssl default_server;          location \/ {                 include \/etc\/nginx\/proxy_params;                 if ($args = '') {                         proxy_pass $scheme:\/\/$host$uri;                 }                 if ($args != '') {                         proxy_pass $scheme:\/\/$host$uri?$args;                 }         } } <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0441\u043a\u0430\u0437\u0430\u0442\u044c  <\/p>\n<pre><code class=\"bash\"># service nginx reload<\/code><\/pre>\n<p>  \u0447\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0438\u0442 nginx \u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e, \u043c\u044f\u0433\u043a\u043e \u043f\u043e\u0433\u0430\u0441\u0438\u0432 \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0443\u043b\u044b.<\/p>\n<p>  \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0441 nginx \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u0434\u0435\u043b\u044e \u043d\u0430\u0437\u0430\u0434, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u044b\u043b \u0432\u043d\u0435\u0441\u0435\u043d \u043e\u0434\u0438\u043d \u0440\u043e\u043b\u0438\u043a \u0441 youtube.com. \u041a\u0440\u043e\u043c\u0435 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0445\u043e\u0434\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0431\u043e\u0447\u043d\u044b\u0445 \u044d\u0444\u0444\u0435\u043a\u0442\u043e\u0432 \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043e \u043d\u0435 \u0431\u044b\u043b\u043e. \u0421 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0432 keep-alive \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438. \u0410 \u0432\u043e\u0442 \u0441 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e\u043c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u044b\u0448\u043b\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435 \u043e\u0447\u0435\u043d\u044c: \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0440\u043e\u043b\u0438\u043a\u043e\u0432 \u043d\u0430 youtube.com \u0432 \u0446\u0435\u043b\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u043d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0440\u043e\u043b\u0438\u043a\u0438 \u0431\u044b\u043b\u0438 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u044b \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e https, \u0430 \u0441 \u043f\u043e\u0434\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u0438\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0438. \u0412\u043e\u043b\u0435\u0432\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0434\u043e\u043c\u0435\u043d\u044b google.com, google.ru, youtube.com \u0431\u044b\u043b\u0438 \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u044b \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u0430 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u0439\u0442\u043e\u0432 \u0431\u044b\u043b \u0432\u043d\u0435\u0441\u0435\u043d \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u00ab\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442\u00bb: \u043f\u043e \u043d\u0435\u043c\u0443 \u0435\u0441\u0442\u044c \u0434\u0430\u0432\u043d\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043e\u0434\u043d\u0430\u043a\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u043e\u043d \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0434\u0432\u0443\u043c\u044f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u043c\u0438 URL.<br \/>  \u0412 \u0446\u0435\u043b\u043e\u043c \u0434\u0430\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e \u0441\u0435\u0431\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u043c \u0434\u043b\u044f \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0447\u0435\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043d\u0430\u0448\u0435\u0433\u043e \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430. \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\/216209\/\"> http:\/\/habrahabr.ru\/post\/216209\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u043a \u043c\u043e\u0435\u043c\u0443 \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c\u0443 (\u043f\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0432 \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u043e\u043c, \u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u043f\u043d\u043e\u043c \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0435) \u043a\u043e\u043b\u043b\u0435\u0433\u0438 \u0438\u0437 \u0420\u043e\u0441\u043a\u043e\u043c\u043d\u0430\u0434\u0437\u043e\u0440\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043d\u0430 \u0432\u0438\u0434, \u0447\u0442\u043e \u043f\u043e IP \u043e\u043d, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u0430\u0439\u0442\u044b, \u043d\u043e \u043f\u043e URL \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0430\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u0442, \u0430 \u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 IP \u0430\u0434\u0440\u0435\u0441\u0430 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u043c \u0442\u043e\u0442 \u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f. \u0422\u043e\u0432\u0430\u0440\u0438\u0449 \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u043d\u0430 \u0441\u0443\u0434\u044c\u0431\u0443, \u0437\u0430\u043e\u0434\u043d\u043e \u043d\u0430\u043c\u0435\u043a\u043d\u0443\u0432, \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043b\u0438\u0447\u043d\u043e \u0435\u0433\u043e \u0443\u0436\u0435 \u0448\u0442\u0440\u0430\u0444\u043e\u0432\u0430\u043b\u0438 \u0437\u0430 \u043d\u0435\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u2116 139-\u0424\u0417.<\/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-216209","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/216209","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=216209"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/216209\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=216209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=216209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=216209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}