{"id":68,"date":"2016-02-26T23:14:50","date_gmt":"2016-02-26T23:14:50","guid":{"rendered":"http:\/\/kloxo.web.id\/?p=68"},"modified":"2016-10-26T03:40:10","modified_gmt":"2016-10-26T03:40:10","slug":"solusi-spse4-logout-forbidden","status":"publish","type":"post","link":"https:\/\/kloxo.web.id\/?p=68","title":{"rendered":"Solusi SPSE4 Logout &#8216;Forbidden&#8217;"},"content":{"rendered":"<p>SPSE4-latihan tidak mau logout dan menampilkan tulisan &#8216;Forbidden&#8217;, ketika di tail -f \/var\/log\/error_log hasilnya sebagai berikut :<\/p>\n<p><em>[Fri Feb 26 12:02:28 2016] [error] [client 10.0.0.99] ModSecurity: Warning. Match of &#8220;rx ^[\\\\\\\\x20-\\\\\\\\x7f]+$&#8221; against &#8220;REQUEST_BODY&#8221; required. [file &#8220;\/etc\/httpd\/conf\/httpd.conf&#8221;] [line &#8220;1125&#8221;] [id &#8220;1234582&#8221;] [hostname &#8220;192.168.100.195&#8221;] [uri &#8220;\/eproc4lat\/user\/logout&#8221;] [unique_id &#8220;VtCFJH8AAAEAACPYALsAAAAB&#8221;]<\/em><\/p>\n<p>berikan saja tanda &#8216;#&#8217; dibaris &#8216;1125&#8217; pada file &#8216;\/etc\/httpd\/conf\/httpd.conf&#8217; dan restart layanan httpd dengan &#8216;service httd restart&#8217;.<\/p>\n<p>## SecRule REQUEST_BODY &#8220;!^[\\x20-\\x7f]+$&#8221;&#8221;id:1234582&#8221;<\/p>\n<p>D.W.Y.O.R (**Selalu backup file conf asal sebelum dilakukan perubahan, agar tidak &#8216;nyanyuk&#8217;)<\/p>\n<p>*UPDATE 2016-10-25 :<\/p>\n<p>setelah mendapat pencerahan dari om guntur, ada solusi lain tanpa &#8216;##&#8217; untuk &#8216;logout forbidden&#8217;, dengan menambahkan baris sbb untuk mendisable id 1234582 pada saat mengakses \/eproc4 :<\/p>\n<p>&lt;IfModule mod_security2.c&gt;<br \/>\n&lt;Location \/eproc4&gt;<br \/>\nSecRuleEngine Off<br \/>\nSecRuleRemoveById 1234582<br \/>\n&lt;\/Location&gt;<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>sehingga baris :<\/p>\n<p>SecRule REQUEST_BODY &#8220;!^[\\x20-\\x7f]+$&#8221;&#8221;id:1234582&#8221;<\/p>\n<p>tetap aktif\/enable ketika mengakses spse v3.6<\/p>\n<p>solusi ini sebenarnya juga berlaku untuk semua &#8220;SecRule..Id&#8221; dengan menambahkan &#8220;SecRuleRemoveById #nomorid&#8221; yang menyebabkan masalah (DENIED) pada \/eproc4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPSE4-latihan tidak mau logout dan menampilkan tulisan &#8216;Forbidden&#8217;, ketika di tail -f \/var\/log\/error_log hasilnya sebagai berikut : [Fri Feb 26 12:02:28 2016] [error] [client 10.0.0.99] ModSecurity: Warning. Match of &#8220;rx ^[\\\\\\\\x20-\\\\\\\\x7f]+$&#8221; against &#8220;REQUEST_BODY&#8221; required. [file &#8220;\/etc\/httpd\/conf\/httpd.conf&#8221;] [line &#8220;1125&#8221;] [id &#8220;1234582&#8221;] [hostname &#8220;192.168.100.195&#8221;] [uri &#8220;\/eproc4lat\/user\/logout&#8221;] [unique_id &#8220;VtCFJH8AAAEAACPYALsAAAAB&#8221;] berikan saja tanda &#8216;#&#8217; dibaris &#8216;1125&#8217; pada file &#8216;\/etc\/httpd\/conf\/httpd.conf&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-linux-server"],"_links":{"self":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=68"}],"version-history":[{"count":5,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":146,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions\/146"}],"wp:attachment":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}