# How can i fix error 403 for my js file?

**URL:** <https://forum.infinityfree.com/t/how-can-i-fix-error-403-for-my-js-file/107039>\
**Category:** Hosting Support\
**Created:** [March 8, 2025, 11:03pm UTC](https://forum.infinityfree.com/t/how-can-i-fix-error-403-for-my-js-file/107039 "2025-03-08T23:03:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [March 9, 2025, 12:30am UTC](https://forum.infinityfree.com/t/how-can-i-fix-error-403-for-my-js-file/107039/2 "2025-03-09T00:30:54Z")

</div>

You linked the error page instead of your website.

Socket connections are not allowed here, and neither is any sort of API hosting. See:

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/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, API hosting, database hosting or background tasks/tools. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

---

_[View the full topic](https://forum.infinityfree.com/t/how-can-i-fix-error-403-for-my-js-file/107039)._
