# 403 error on site

**URL:** <https://forum.infinityfree.com/t/403-error-on-site/108786>\
**Category:** Hosting Support\
**Created:** [April 13, 2025, 5:08pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786 "2025-04-13T17:08:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![THE\_WHITE\_DEATH](https://forum.infinityfree.com/letter_avatar/the_white_death/32/6_449c533f586939b6e5f246632a46421f.png) [@THE\_WHITE\_DEATH](https://forum.infinityfree.com/u/THE_WHITE_DEATH)\
**Post date:** [April 13, 2025, 5:08pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/1 "2025-04-13T17:08:46Z")

</div>

### [Website URL](https://osiris.wuaze.com/)

(please specify the URL of the site on which you are experiencing the problem)

### Forbidden

You don’t have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

### Other Information

um i will be honest here i have no prior experience of coding a website before and am more into py and stuff… currently needed this web for my python bot…  
and 90% of current website’s code is from ai and from past few days was trying to fix it on my own but couldnt…  
thanks  
(other information and details relevant to your question)

---

<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:** [April 13, 2025, 5:17pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/2 "2025-04-13T17:17:45Z")

</div>

> [@THE\_WHITE\_DEATH](#):
>
> currently needed this web for my python bot

If your bot is trying to access your website, that’s not possible. See:

> [@Browser Security System - Features and Limitations](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree uses a security system on all free hosting accounts to ensure your website is accessed by real web browsers, not bots or automated scripts. While this protects your site from malicious traffic, it can affect certain types of access. How the security system works The system checks that visitors can execute JavaScript and accept cookies: features that all modern web browsers support. This verification happens automatically and most website visitors will never notice it. You may occa…

Otherwise:

> [@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…

---

<div class="post-metadata">

**Author:** ![THE\_WHITE\_DEATH](https://forum.infinityfree.com/letter_avatar/the_white_death/32/6_449c533f586939b6e5f246632a46421f.png) [@THE\_WHITE\_DEATH](https://forum.infinityfree.com/u/THE_WHITE_DEATH)\
**Post date:** [April 14, 2025, 5:17pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/3 "2025-04-14T17:17:33Z")

</div>

hello ty for the timely reply…  
i somehow fixed the error thorugh tons of error hunting which without logs was hard…  
and smhw through making the php display error directly and running some series of test im stuck on this even after trying to fix for nearly 5 hours of troubleshooting…

## Connection Test with .env Parameters

Attempting to connect with DSN: mysql:host=[sql304.infinityfree.com](http://sql304.infinityfree.com);dbname=if0\_38711725\_bishop;charset=utf8mb4;port=3306

Connection failed: SQLSTATE[HY000] [1044] Access denied for user ‘if0\_38711725’@‘192.168.%’ to database ‘if0\_38711725\_bishop’

## Alternative Connection Tests

### Test 1: Without Port

DSN: mysql:host=[sql304.infinityfree.com](http://sql304.infinityfree.com);dbname=if0\_38711725\_bishop;charset=utf8mb4

Connection failed: SQLSTATE[HY000] [1044] Access denied for user ‘if0\_38711725’@‘192.168.%’ to database ‘if0\_38711725\_bishop’

### Test 2: Using mysqli

Host: [sql304.infinityfree.com](http://sql304.infinityfree.com), DB: if0\_38711725\_bishop

Connection failed: Access denied for user ‘if0\_38711725’@‘192.168.%’ to database ‘if0\_38711725\_bishop’

### Test 3: With Persistent Connection

DSN: mysql:host=p:sql304.infinityfree.com;dbname=if0\_38711725\_bishop;charset=utf8mb4

Connection failed: SQLSTATE[HY000] [2002] Connection refused

## Connection to MySQL Server (without database)

Attempting to connect to MySQL server without specifying database

DSN: mysql:host=[sql304.infinityfree.com](http://sql304.infinityfree.com);charset=utf8mb4;port=3306

Successfully connected to the MySQL server!

Connection to MySQL server failed: SQLSTATE[42000]: Syntax error or access violation: 1227 Access denied; you need (at least one of) the SHOW DATABASES privilege(s) for this operation

and im now getting http 500 error on other webpages which ig is caused by this sql error…

---

<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:** [April 15, 2025, 8:37am UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/4 "2025-04-15T08:37:21Z")

</div>

> [@THE\_WHITE\_DEATH](#):
>
> Connection failed: SQLSTATE[HY000] [1044] Access denied for user ‘if0\_38711725’@‘192.168.%’ to database ‘if0\_38711725\_bishop’

Did you check this article already? It has a section specific about this “Access denied” error:

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338#access-denied-for-user-4):
>
> Many websites use MySQL databases to store information and settings. However, there are some reasons why the connection to the database may fail. This article describes some commonly seen error messages when connecting to a database, as well as some general tips to keep in mind when setting up a database connection. Common Error Messages Using MySQL is great, but the error message returned if there is an issue logging in to your database can be quite confusing. Here are some commonly seen error…

---

<div class="post-metadata">

**Author:** ![THE\_WHITE\_DEATH](https://forum.infinityfree.com/letter_avatar/the_white_death/32/6_449c533f586939b6e5f246632a46421f.png) [@THE\_WHITE\_DEATH](https://forum.infinityfree.com/u/THE_WHITE_DEATH)\
**Post date:** [April 15, 2025, 1:26pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/5 "2025-04-15T13:26:18Z")

</div>

yep had seen that before replying…

```auto
## Connection to MySQL Server (without database)

Attempting to connect to MySQL server without specifying database

DSN: mysql:host=sql304.infinityfree.com;charset=utf8mb4;port=3306

Successfully connected to the MySQL server!

Connection to MySQL server failed: SQLSTATE[42000]: Syntax error or access violation: 1227 Access denied; you need (at least one of) the SHOW DATABASES privilege(s) for this operation

```

currently am trying to use external db and to make the php not to verify the sql instead try without it or …

---

<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:** [April 15, 2025, 3:33pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/6 "2025-04-15T15:33:14Z")

</div>

I’m not sure what you were trying to do with that last attempt. It looks like you’re not trying to authenticate at all, which means you can’t do anything. And with how we setup database users, you can’t do `SHOW DATABASES` even with the right credentials.

---

<div class="post-metadata">

**Author:** ![THE\_WHITE\_DEATH](https://forum.infinityfree.com/letter_avatar/the_white_death/32/6_449c533f586939b6e5f246632a46421f.png) [@THE\_WHITE\_DEATH](https://forum.infinityfree.com/u/THE_WHITE_DEATH)\
**Post date:** [April 15, 2025, 3:53pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/7 "2025-04-15T15:53:32Z")

</div>

nvm ty for the help  
im starting again from scratch doing each webpage one by one…  
will let ya know if i need help..  
ty

---

<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:** [April 22, 2025, 3:54pm UTC](https://forum.infinityfree.com/t/403-error-on-site/108786/8 "2025-04-22T15:54:16Z")

</div>

Closed on April 22, 2025, 3:54pm UTC

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