# 403 Forbidden on habittracker.php — file/permissions look correct

**URL:** <https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255>\
**Category:** Hosting Support\
**Created:** [August 22, 2026, 4:32pm UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255 "2026-08-22T16:32:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![KathleenKaren](https://forum.infinityfree.com/letter_avatar/kathleenkaren/32/6_449c533f586939b6e5f246632a46421f.png) [@KathleenKaren](https://forum.infinityfree.com/u/KathleenKaren)\
**Post date:** [August 22, 2026, 4:32pm UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/1 "2026-08-22T16:32:46Z")

</div>

### Website URL

[https://leldorabloom.xo.je/habittracker.php](https://leldorabloom.xo.je/habittracker.php)

### Error Message

403 Forbidden  
Server or website configuration is blocking me from viewing this page

### Other Information

I have several PHP files in htdocs on this account. One of them, leldoraprogram.php,  
loads correctly. Another file, habittracker.php, returns a 403 Forbidden error every  
time it’s accessed, even directly by URL.

Things I’ve already checked:

- The file is in the correct htdocs folder (confirmed via FTP)
- File permissions are 644, identical to leldoraprogram.php which works fine
- There is no .htaccess file in htdocs that could be blocking it
- The filename doesn’t contain any of the documented blocked keywords  
(“chat”, “includes”)
- File size looks correct/normal for the code it contains, so it doesn’t appear  
to be a failed/corrupted upload

Could this be a WAF/ModSecurity false positive similar to other reports in this  
forum? Any help figuring out what’s blocking this specific file would be appreciated.

---

<div class="post-metadata">

**Author:** ![deepayandas2013](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/deepayandas2013/32/68045_2.png) [@deepayandas2013](https://forum.infinityfree.com/u/deepayandas2013)\
**Post date:** [August 22, 2026, 4:52pm UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/2 "2026-08-22T16:52:45Z")

</div>

hello, actually, if you use any api or something like that which has expired (or the key isnt present), it could give you a 403 FORBIDDEN

oh and i got this response from the google ai assistance:  
The request is failing because the server has intentionally refused to authorize your access to the requested resource.

**Root Cause** : A server-side restriction or website configuration is blocking the request. Since this is an InfinityFree error page, the underlying host has likely implemented security rules, IP blocking, or directory permissions that forbid your specific request.

**Suggestions** :

- **Check `.htaccess`** : If you are the site owner, ensure your `.htaccess` file does not have `Deny from all` rules or incorrect IP restrictions.
- **Verify Directory Permissions** : Ensure the target folder has `0755` permissions and the target file has `0644` permissions.
- **Verify File Existence** : Some hosting configurations return a 403 Forbidden instead of a 404 Not Found if an index file (e.g., `index.php` or `index.html`) is missing and directory listing is disabled.
- **Check WAF/Security Settings** : Disable any security plugins (like Wordfence or Cloudflare rules) temporarily to see if they are triggering a false positive block.

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [August 22, 2026, 5:24pm UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/3 "2026-08-22T17:24:05Z")

</div>

> [@deepayandas2013](#):
>
> , if you use any api or something like that which has expired (or the key isnt present), it could give you a 403 FORBIDDEN

You can’t host API’s on InfinityFree. But I don’t think that’s the problem here.

> [@KathleenKaren](#):
>
> Could this be a WAF/ModSecurity false positive similar to other reports in this  
> forum?

False positives are few and far between. Lots of people say they’re getting a false positives from the security system. But I’ve not seen any yet that actually are in the nearly 2 years I’ve been here.

First, can you replace the body of the habittracker.php with some kind of basic hello world type message?  
If that still triggers a 403 (after a cache clear) then it’s something about the URL is triggering the 403.

If the hello world text works, then something about the page itself is triggering. Since this is a community forum, we don’t have any access to your code so you’ll need to share more details about the actual page, and what it’s doing for us to be able to help

---

<div class="post-metadata">

**Author:** ![deepayandas2013](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/deepayandas2013/32/68045_2.png) [@deepayandas2013](https://forum.infinityfree.com/u/deepayandas2013)\
**Post date:** [August 23, 2026, 2:28am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/4 "2026-08-23T02:28:55Z")

</div>

no actually, i was not talking about hosting api(s) **on** infinityfree, if they use a api just to load the page or something like that, and the key(s) are expired, then it can be a 403 problem

---

<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:** [August 23, 2026, 2:38am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/5 "2026-08-23T02:38:16Z")

</div>

Then you did not understand the problem. The OP is experiencing 403 on his website directly, not an API returning 403 breaking functionality.

---

<div class="post-metadata">

**Author:** ![deepayandas2013](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/deepayandas2013/32/68045_2.png) [@deepayandas2013](https://forum.infinityfree.com/u/deepayandas2013)\
**Post date:** [August 23, 2026, 3:44am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/6 "2026-08-23T03:44:58Z")

</div>

> [@KathleenKaren](#):
>
> leldoraprogram.php

then it also could be a sql connection error (i have also experienced it)

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [August 23, 2026, 8:14am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/7 "2026-08-23T08:14:33Z")

</div>

While possible, its unlikely. SQL errors more often result in either a 500 error (PHP code crashing) or just missing data. It would be unusual for it to cause a 403 error.

Either way, we can’t really speculate any more until @KathleenKaren provides more info as above

---

<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:** [August 23, 2026, 9:44am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/8 "2026-08-23T09:44:56Z")

</div>

`habittracker.php` seems to contain a blocked keyword `tracker.php` that results in 403.

This mean that the most straightforward solution would be renaming your file.

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [August 23, 2026, 10:23am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/9 "2026-08-23T10:23:18Z")

</div>

I didnt know “tracker” was one of the banned key words. Good to know

---

<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:** [August 23, 2026, 11:28am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/10 "2026-08-23T11:28:49Z")

</div>

I see this post and decided that there might be a blocked keyword undocumented so I tried it out by myself.

And for reference it is `tracker.php`. `tracker` itself doesn’t seem to trigger a 403.

---

<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:** [August 30, 2026, 11:29am UTC](https://forum.infinityfree.com/t/403-forbidden-on-habittracker-php-file-permissions-look-correct/120255/11 "2026-08-30T11:29:38Z")

</div>

Closed on August 30, 2026, 11:29am UTC

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