{"id":2996,"date":"2018-06-03T01:10:01","date_gmt":"2018-06-03T01:10:01","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=2996"},"modified":"2020-06-01T05:33:09","modified_gmt":"2020-06-01T05:33:09","slug":"prevent-hack-to-server-and-sites","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/prevent-hack-to-server-and-sites\/","title":{"rendered":"Prevent hack to server and sites"},"content":{"rendered":"<p>To prevent from hack to the server and sites the following settings need to be done strictly on the server else wait for hacker to hack the server&#8230;.<\/p>\n<p>1) Disable the system binaries, like wget, gcc, lynx and others to stop anyone from using them.<\/p>\n<p>2) Secure the PHP by disabling the vulnerable php functions as per your requirement in server main php.ini file.<br \/>\nThe vulnerable functions are as follows and you can also refer the following URL http:\/\/php.net\/quickref.php to collect more information about php function.<\/p>\n<p><strong>&#8220;shell_exec,system,passthru,exec,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,highlight_file,escapeshellcmd,define_syslog_variables etc&#8221;<\/strong><\/p>\n<p>3) Once in every month make sure that PHP\/Apache is up to date with the latest secured patch.<\/p>\n<p>4) Install the mod_security and update it with latest ruleset! Mod_security through cPanel installation has NO ruleset, so you have to search the rule set in google.<\/p>\n<p>5) Patch the kerenl module with the current kernel patches.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>To prevent from hack to the server and sites the following settings need to be done strictly on the server else wait for hacker to <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/prevent-hack-to-server-and-sites\/\" title=\"Prevent hack to server and sites\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":6674,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,44,58],"tags":[],"class_list":["post-2996","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos-server","category-linux","category-php"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2996"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=2996"}],"version-history":[{"count":8,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2996\/revisions"}],"predecessor-version":[{"id":6394,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2996\/revisions\/6394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media\/6674"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=2996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=2996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=2996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}