# Does infinityfree allow php include over http?

**URL:** <https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122>\
**Category:** Hosting Support\
**Created:** [October 29, 2020, 5:10am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122 "2020-10-29T05:10:06Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreejalmaharjan](https://forum.infinityfree.com/letter_avatar/shreejalmaharjan/32/6_449c533f586939b6e5f246632a46421f.png) [@shreejalmaharjan](https://forum.infinityfree.com/u/shreejalmaharjan)\
**Post date:** [October 29, 2020, 5:10am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/1 "2020-10-29T05:10:06Z")

</div>

I just have a quick question if infinity free allows PHP include over HTTP.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 29, 2020, 5:13am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/2 "2020-10-29T05:13:25Z")

</div>

InfinityFree supports PHP/MySQL hosting so I guess the answer is yes

---

<div class="post-metadata">

**Author:** ![shreejalmaharjan](https://forum.infinityfree.com/letter_avatar/shreejalmaharjan/32/6_449c533f586939b6e5f246632a46421f.png) [@shreejalmaharjan](https://forum.infinityfree.com/u/shreejalmaharjan)\
**Post date:** [October 29, 2020, 5:41am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/3 "2020-10-29T05:41:43Z")

</div>

I don’t think so, when I tried it didn’t work

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 29, 2020, 5:45am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/4 "2020-10-29T05:45:22Z")

</div>

Read this

> **[Ensuring only web browsers can access your website](https://forum.infinityfree.com/docs?topic=49353)**
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing,...

---

<div class="post-metadata">

**Author:** ![shreejalmaharjan](https://forum.infinityfree.com/letter_avatar/shreejalmaharjan/32/6_449c533f586939b6e5f246632a46421f.png) [@shreejalmaharjan](https://forum.infinityfree.com/u/shreejalmaharjan)\
**Post date:** [October 29, 2020, 5:47am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/5 "2020-10-29T05:47:15Z")

</div>

This doesn’t answer my question… 😕

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 29, 2020, 5:47am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/6 "2020-10-29T05:47:57Z")

</div>

Which part did not work?

---

<div class="post-metadata">

**Author:** ![shreejalmaharjan](https://forum.infinityfree.com/letter_avatar/shreejalmaharjan/32/6_449c533f586939b6e5f246632a46421f.png) [@shreejalmaharjan](https://forum.infinityfree.com/u/shreejalmaharjan)\
**Post date:** [October 29, 2020, 5:48am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/7 "2020-10-29T05:48:44Z")

</div>

\<?php include 'https://example.com/somefile.php'; ?\>

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 29, 2020, 5:51am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/8 "2020-10-29T05:51:43Z")

</div>

> [@shreejalmaharjan](#):
>
> [https://example.com/somefile.php](https://example.com/somefile.php)

Every PHP script can only access the files in their own website directory. For security, scripts in one domain on your account cannot access files on another domain.

---

<div class="post-metadata">

**Author:** ![shreejalmaharjan](https://forum.infinityfree.com/letter_avatar/shreejalmaharjan/32/6_449c533f586939b6e5f246632a46421f.png) [@shreejalmaharjan](https://forum.infinityfree.com/u/shreejalmaharjan)\
**Post date:** [October 29, 2020, 6:17am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/9 "2020-10-29T06:17:14Z")

</div>

Read this third example [PHP: include - Manual](https://www.php.net/manual/en/function.include.php)

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 29, 2020, 6:34am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/10 "2020-10-29T06:34:03Z")

</div>

Is your domain [example.com](http://example.com)?  
Unless your domain is [example.com](http://example.com), \<?php include 'https://example.com/somefile.php'; ?\> will not work

---

<div class="post-metadata">

**Author:** ![shreejalmaharjan](https://forum.infinityfree.com/letter_avatar/shreejalmaharjan/32/6_449c533f586939b6e5f246632a46421f.png) [@shreejalmaharjan](https://forum.infinityfree.com/u/shreejalmaharjan)\
**Post date:** [October 29, 2020, 7:17am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/11 "2020-10-29T07:17:52Z")

</div>

Bruh, [example.com](http://example.com) is an example of any domain.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 29, 2020, 7:47am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/12 "2020-10-29T07:47:41Z")

</div>

Being evasive does not help.

---

<div class="post-metadata">

**Author:** ![anon19508339](https://forum.infinityfree.com/letter_avatar/anon19508339/32/6_449c533f586939b6e5f246632a46421f.png) [@anon19508339](https://forum.infinityfree.com/u/anon19508339)\
**Post date:** [October 29, 2020, 9:19am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/13 "2020-10-29T09:19:19Z")

</div>

Short answer: No.  
Long Answer: Enabling include over http is disabled due to the security reasons, if there was no security issues we would enable it.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [November 13, 2020, 9:24am UTC](https://forum.infinityfree.com/t/does-infinityfree-allow-php-include-over-http/37122/14 "2020-11-13T09:24:26Z")

</div>

Closed on November 13, 2020, 9:24am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
