{"id":1358,"date":"2019-02-08T10:36:08","date_gmt":"2019-02-08T10:36:08","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583748-is-dl-enabled-at-hostinger\/"},"modified":"2019-02-08T10:36:08","modified_gmt":"2019-02-08T10:36:08","slug":"1583748-is-dl-enabled-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583748-is-dl-enabled-at-hostinger\/","title":{"rendered":"Is dl() Enabled at Hostinger?"},"content":{"rendered":"<p class=\"no-margin\">The <b><code>dl()<\/code><\/b> function in PHP is used to <b>dynamically load<\/b> a PHP extension at runtime within a script, allowing the inclusion of a shared library or extension file that extends PHP functionality.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">However, it poses potential <b>security vulnerabilities <\/b>due to its capacity to load arbitrary or malicious code. For this reason, the <code>dl()<\/code> function is disabled by default on our <b><a href=\"https:\/\/www.hostinger.com\/web-hosting\" target=\"_blank\" class=\"intercom-content-link\">Web<\/a> <\/b>and<b><a href=\"https:\/\/www.hostinger.com\/cloud-hosting\" target=\"_blank\" class=\"intercom-content-link\"> Cloud<\/a> <\/b>hosting plans.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If necessary, you can <b><a href=\"\/support\/3212034-how-to-enable-shell_exec-exec-and-other-disabled-php-functions-on-shared-hosting\" target=\"_blank\" class=\"intercom-content-link\">manually enable<\/a><\/b> the <b><code>dl()<\/code><\/b> function from your hPanel. We recommend considering the following precautions:<\/p><ul>\n<li>\n<p class=\"no-margin\">Ensure you&rsquo;re using the <b>latest PHP version<\/b> available<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Implement strict <b>input validation and sanitization<\/b> measures to safeguard against potential security threats<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Limit the use of <b><code>dl()<\/code><\/b> exclusively to <b>specific directories or scripts<\/b> that require dynamic loading of extensions<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">While these precautions can help reduce the risks associated with using <b><code>dl()<\/code><\/b>, it&rsquo;s generally advisable to avoid its usage and, if possible, seeking <b>alternative solutions<\/b> to maintain a more secure hosting environment.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>Additional Resources<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a href=\"\/support\/1583390-what-to-do-if-your-account-or-site-has-been-hacked\" target=\"_blank\" class=\"intercom-content-link\">What to Do if Your Account or Site Has Been Hacked?<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Using dl() on Web and Cloud hosting plans<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[218],"tags":[],"class_list":["post-1358","post","type-post","status-publish","format-standard","hentry","category-supported-technologies-and-functions"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583748-is-dl-enabled-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583748-esta-dl-habilitado-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583748-la-fonction-dl-est-elle-activee\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583748-a-dl-esta-habilitada-na-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1358"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1358\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}