{"id":869,"date":"2011-11-04T10:53:55","date_gmt":"2011-11-04T03:53:55","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=869"},"modified":"2019-03-27T13:44:08","modified_gmt":"2019-03-27T06:44:08","slug":"securing-php-ini","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html","title":{"rendered":"Securing php.ini"},"content":{"rendered":"<p><strong>Disabling Functionality <\/strong><\/p>\n<p>There are certain functions in PHP that we don\u2019t want users to use because of the danger they are. Even if you know your users aren\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\u2019t use them. This security precaution is especially effective at stopping an attacker who has somehow managed to upload a PHP script, write one to the filesystem, or even include a remote PHP file. By disabling functionality you ensure that you can limit the effectiveness of these types of attacks. Of course, there are always users who\u2019s to complain these, but We say sorry! Use Virtual Private Server and run itself what you want.<\/p>\n<p><code>disable_functions = exec, system, passthru, shell_exec, escapeshellarg, escapeshellcmd, proc_close, proc_open, dl, popen, show_source, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname<\/code><\/p>\n<p><strong>Disable Remote File Includes<\/strong><\/p>\n<p>Attackers will often attempt to identify file inclusion vulnerabilities in applications then use them to include malicious PHP scripts that they write. Even if an attacker doesn\u2019t have write access to the web application directories if remote file inclusion is enabled the attacker can host malicious PHP scripts on other servers and the web application will fetch them and execute them locally!<\/p>\n<p>We don\u2019t block url_fopen our hosting environment, because cause lot of problems to websites!<\/p>\n<p><code>allow_url_fopen = On<br \/>\nallow_url_include = Off<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Disabling Functionality There are certain functions in PHP that we don\u2019t want users to use because of the danger they are. Even if you know your users aren\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\u2019t use them. This security precaution is especially effective at stopping an attacker who\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-869","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Disabling Functionality There are certain functions in PHP that we don\u2019t want users to use because of the danger they are. Even if you know your users aren\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\u2019t use them. This security precaution is especially effective at stopping an attacker who\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"whplus\"\/>\n\t<meta name=\"google-site-verification\" content=\"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY\" \/>\n\t<meta name=\"keywords\" content=\"tutorial\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Securing php.ini | Whplus Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Disabling Functionality There are certain functions in PHP that we don\u2019t want users to use because of the danger they are. Even if you know your users aren\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\u2019t use them. This security precaution is especially effective at stopping an attacker who\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@whplus\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#article\",\"name\":\"Securing php.ini | Whplus Blog\",\"headline\":\"Securing php.ini\",\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#articleImage\",\"width\":150,\"height\":60},\"datePublished\":\"2011-11-04T10:53:55+07:00\",\"dateModified\":\"2019-03-27T13:44:08+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#webpage\"},\"articleSection\":\"Tutorial\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial#listItem\",\"name\":\"Tutorial\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial#listItem\",\"position\":2,\"name\":\"Tutorial\",\"item\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#listItem\",\"name\":\"Securing php.ini\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#listItem\",\"position\":3,\"name\":\"Securing php.ini\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/category\\\/tutorial#listItem\",\"name\":\"Tutorial\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\",\"name\":\"Whplus\",\"description\":\"Informasi Seputar Layanan Whplus\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html\\\/#organizationLogo\",\"width\":150,\"height\":60},\"image\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/twitter.com\\\/whplus\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus\",\"name\":\"whplus\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"whplus\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#webpage\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html\",\"name\":\"Securing php.ini | Whplus Blog\",\"description\":\"Disabling Functionality There are certain functions in PHP that we don\\u2019t want users to use because of the danger they are. Even if you know your users aren\\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\\u2019t use them. This security precaution is especially effective at stopping an attacker who\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/2011\\\/11\\\/04\\\/securing-php-ini.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/author\\\/whplus#author\"},\"datePublished\":\"2011-11-04T10:53:55+07:00\",\"dateModified\":\"2019-03-27T13:44:08+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/\",\"name\":\"Whplus Blog\",\"description\":\"Informasi Seputar Layanan Whplus\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.whplus.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Securing php.ini | Whplus Blog","description":"Disabling Functionality There are certain functions in PHP that we don\u2019t want users to use because of the danger they are. Even if you know your users aren\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\u2019t use them. This security precaution is especially effective at stopping an attacker who","canonical_url":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html","robots":"max-image-preview:large","keywords":"tutorial","webmasterTools":{"google-site-verification":"F5J0SGlaGQ2pp3SIm58KggrITtNTptKPB73P9hpRpfY","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#article","name":"Securing php.ini | Whplus Blog","headline":"Securing php.ini","author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/#articleImage","width":150,"height":60},"datePublished":"2011-11-04T10:53:55+07:00","dateModified":"2019-03-27T13:44:08+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#webpage"},"isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#webpage"},"articleSection":"Tutorial"},{"@type":"BreadcrumbList","@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.whplus.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/tutorial#listItem","name":"Tutorial"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/tutorial#listItem","position":2,"name":"Tutorial","item":"https:\/\/www.whplus.com\/blog\/category\/tutorial","nextItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#listItem","name":"Securing php.ini"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#listItem","position":3,"name":"Securing php.ini","previousItem":{"@type":"ListItem","@id":"https:\/\/www.whplus.com\/blog\/category\/tutorial#listItem","name":"Tutorial"}}]},{"@type":"Organization","@id":"https:\/\/www.whplus.com\/blog\/#organization","name":"Whplus","description":"Informasi Seputar Layanan Whplus","url":"https:\/\/www.whplus.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png","@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html\/#organizationLogo","width":150,"height":60},"image":{"@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html\/#organizationLogo"},"sameAs":["https:\/\/twitter.com\/whplus"]},{"@type":"Person","@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author","url":"https:\/\/www.whplus.com\/blog\/author\/whplus","name":"whplus","image":{"@type":"ImageObject","@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/5a5270c9fb35780ddadb175b96b0d198683692a2d67525ef5477ca2b11b18ad3?s=96&d=mm&r=g","width":96,"height":96,"caption":"whplus"}},{"@type":"WebPage","@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#webpage","url":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html","name":"Securing php.ini | Whplus Blog","description":"Disabling Functionality There are certain functions in PHP that we don\u2019t want users to use because of the danger they are. Even if you know your users aren\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\u2019t use them. This security precaution is especially effective at stopping an attacker who","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.whplus.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.whplus.com\/blog\/2011\/11\/04\/securing-php-ini.html#breadcrumblist"},"author":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"creator":{"@id":"https:\/\/www.whplus.com\/blog\/author\/whplus#author"},"datePublished":"2011-11-04T10:53:55+07:00","dateModified":"2019-03-27T13:44:08+07:00"},{"@type":"WebSite","@id":"https:\/\/www.whplus.com\/blog\/#website","url":"https:\/\/www.whplus.com\/blog\/","name":"Whplus Blog","description":"Informasi Seputar Layanan Whplus","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.whplus.com\/blog\/#organization"}}]},"twitter:card":"summary","twitter:site":"@whplus","twitter:title":"Securing php.ini | Whplus Blog","twitter:description":"Disabling Functionality There are certain functions in PHP that we don\u2019t want users to use because of the danger they are. Even if you know your users aren\u2019t utilizing certain functions it is wise to completely disable them so an attacker can\u2019t use them. This security precaution is especially effective at stopping an attacker who","twitter:creator":"@whplus","twitter:image":"https:\/\/www.whplus.com\/blog\/wp-content\/uploads\/2021\/03\/logo.png"},"aioseo_meta_data":{"post_id":"869","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-09 02:19:29","updated":"2022-09-13 16:29:21","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=869"}],"version-history":[{"count":4,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/869\/revisions"}],"predecessor-version":[{"id":875,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/869\/revisions\/875"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}