# Website has been blocked

**URL:** <https://forum.infinityfree.com/t/website-has-been-blocked/88856>\
**Category:** Hosting Support\
**Created:** [January 19, 2024, 5:41am UTC](https://forum.infinityfree.com/t/website-has-been-blocked/88856 "2024-01-19T05:41:58Z")\
**Posts on this page:** 5\
**Page:** 2

<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:** [January 24, 2024, 3:04am UTC](https://forum.infinityfree.com/t/website-has-been-blocked/88856/21 "2024-01-24T03:04:28Z")

</div>

> [@kim\_0408](#):
>
> but my website still get block, why?

Because you did not read.

> [@Redirected to InfinityFree 403 Forbidden page](https://forum.infinityfree.com/t/redirected-to-infinityfree-403-forbidden-page/58664):
>
> Getting a 403 error means the server is refusing to show your webpage. Here are the most common causes and how to fix them: 1. Website Files Are in the Wrong Location The Issue: Your domain might be pointing to an empty or non-existent folder. How to Check: Log into your [InfinityFree client area](https://dash.infinityfree.com) Go to Accounts → [Select your account] → Domains → [Find your domain] → Manage Find the Directory Status card, and look at the Directory displayed there Understanding the folder structure: Your fi…

Read carefully and follow instructions

> [@kim\_0408](#):
>
> my connection

From which file?

---

<div class="post-metadata">

**Author:** ![kim\_0408](https://forum.infinityfree.com/letter_avatar/kim_0408/32/6_449c533f586939b6e5f246632a46421f.png) [@kim\_0408](https://forum.infinityfree.com/u/kim_0408)\
**Post date:** [January 24, 2024, 3:17am UTC](https://forum.infinityfree.com/t/website-has-been-blocked/88856/22 "2024-01-24T03:17:48Z")

</div>

config.php

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [January 24, 2024, 4:04am UTC](https://forum.infinityfree.com/t/website-has-been-blocked/88856/23 "2024-01-24T04:04:54Z")

</div>

I don’t see how that code would make any connections.

All what it will do is to retrieve the full link base on a relative path, and that’s all.

I know that you have codes above, but since you explicity asked for this part, that’s all of my answer.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [January 24, 2024, 10:30am UTC](https://forum.infinityfree.com/t/website-has-been-blocked/88856/24 "2024-01-24T10:30:47Z")

</div>

> [@kim\_0408](#):
>
> i already move all the files to the htdocs but my website still get block, why?

Because there is no index file in the folder. When a hosting server tries to load a website folder, it will look for a file called `index.php`, `index.html` or `index.htm`, which will be loaded as the “home page” of that folder. If no such file exists, you’ll see a 403 error.

Please choose which page you want to have as your website’s home page, and rename it to `index.php` so it gets loaded as the main page.

> [@kim\_0408](#):
>
> ![Screenshot 2024-01-24 101609](https://forum-cdn.infinityfree.net/original/3X/3/5/35f6b6c89f9065f2c896c2d1eddec4a99d721e58.png)
> 
> **this is my connection to the website link**

Defining a constant and a function in PHP isn’t go to do anything if the PHP code isn’t triggered. Which is the case here: our servers have no idea how to use your website code to render a page because the right files don’t exist in the expected location.

---

<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:** [January 31, 2024, 10:31am UTC](https://forum.infinityfree.com/t/website-has-been-blocked/88856/25 "2024-01-31T10:31:04Z")

</div>

Closed on January 31, 2024, 10:31am UTC

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

[Previous page](https://forum.infinityfree.com/t/website-has-been-blocked/88856.md?page=1)
