{"id":616,"date":"2019-08-13T18:15:31","date_gmt":"2019-08-13T16:15:31","guid":{"rendered":"http:\/\/www.antynet.pl\/?p=616"},"modified":"2019-08-27T09:03:08","modified_gmt":"2019-08-27T07:03:08","slug":"wordpress-obowiazkowe-zabezpieczenia","status":"publish","type":"post","link":"https:\/\/www.antynet.pl\/index.php\/2019\/08\/13\/wordpress-obowiazkowe-zabezpieczenia\/","title":{"rendered":"WordPress &#8211; obowi\u0105zkowe zabezpieczenia"},"content":{"rendered":"<p>Drobna modyfikacja poprzednich regu\u0142ek. Oczywi\u015bcie zmiany podyktowane przykrymi do\u015bwiadczeniami \ud83d\ude09<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;IfModule rewrite_module&gt;<br \/>\nRewriteEngine on<br \/>\nRewriteCond %{REQUEST_URI} -d<br \/>\nRewriteRule .* \/index.php?dir=$0<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p># Block any script trying to base64_encode data within the URL.<br \/>\nRewriteCond %{QUERY_STRING} base64_encode[^(]*\\([^)]*\\) [OR]<br \/>\n# Block any script that includes a &lt;script&gt; tag in URL.<br \/>\nRewriteCond %{QUERY_STRING} (&lt;|%3C)([^s]*s)+cript.*(&gt;|%3E) [NC,OR]<br \/>\n# Block any script trying to set a PHP GLOBALS variable via URL.<br \/>\nRewriteCond %{QUERY_STRING} GLOBALS(=|\\[|\\%[0-9A-Z]{0,2}) [OR]<br \/>\n# Block any script trying to modify a _REQUEST variable via URL.<br \/>\nRewriteCond %{QUERY_STRING} _REQUEST(=|\\[|\\%[0-9A-Z]{0,2})<br \/>\n# Return 403 Forbidden header and show the content of the root home page<br \/>\nRewriteRule .* index.php [F]<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;FilesMatch &#8222;wp-config.*\\.php|\\.htaccess|readme\\.html&#8221;&gt;<br \/>\nOrder allow,deny<br \/>\nDeny from all<br \/>\n&lt;\/FilesMatch&gt;<\/p>\n<p>&lt;Files wp-login.php&gt;<br \/>\nAuthType Basic<br \/>\nAuthGroupFile \/dev\/null<br \/>\nAuthName &#8222;stop&#8221;<br \/>\nAuthUserFile \/password (tutaj haslo dostepu do panelu logowania)<br \/>\nrequire valid-user<br \/>\n&lt;\/Files&gt;<\/p>\n<p>&lt;Files xmlrpc.php&gt;<br \/>\nOrder deny,allow<br \/>\nDeny from all<br \/>\n&lt;\/Files&gt;<\/p>\n<p>RewriteCond %{QUERY_STRING} author=\\d<br \/>\nRewriteRule ^ \/? [L,R=301]<\/p>\n<p>&lt;Files ~ &#8222;^.*\\.([Hh][Tt][Aa])&#8221;&gt;<br \/>\norder allow,deny<br \/>\ndeny from all<br \/>\nsatisfy all<br \/>\n&lt;\/files&gt;<\/p>\n<p>&lt;Files wp-content\/uploads\/^(*.jpeg|*.jpg|*.png|*.gif|*.pdf)&gt;<br \/>\norder deny,allow<br \/>\ndeny from all<br \/>\n&lt;\/Files&gt;<\/p>\n<p>&lt;files wp-config.php&gt;<br \/>\norder allow,deny<br \/>\ndeny from all<br \/>\n&lt;\/files&gt;<\/p>\n<p>&lt;Files wp-content\/uploads\/*.php&gt;<br \/>\ndeny from all<br \/>\n&lt;\/Files&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drobna modyfikacja poprzednich regu\u0142ek. Oczywi\u015bcie zmiany podyktowane przykrymi do\u015bwiadczeniami \ud83d\ude09 &nbsp; &lt;IfModule rewrite_module&gt; RewriteEngine on RewriteCond %{REQUEST_URI} -d RewriteRule .* \/index.php?dir=$0 &lt;\/IfModule&gt; # Block any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\\([^)]*\\) [OR] # Block any script that includes a &lt;script&gt; tag in URL. RewriteCond %{QUERY_STRING} (&lt;|%3C)([^s]*s)+cript.*(&gt;|%3E) [NC,OR] # Block any [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-616","post","type-post","status-publish","format-standard","hentry","category-sciaga-admina"],"_links":{"self":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/comments?post=616"}],"version-history":[{"count":4,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/616\/revisions"}],"predecessor-version":[{"id":642,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/posts\/616\/revisions\/642"}],"wp:attachment":[{"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/media?parent=616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/categories?post=616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.antynet.pl\/index.php\/wp-json\/wp\/v2\/tags?post=616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}