Redirected to InfinityFree 403 Forbidden page

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:

  1. Log into your InfinityFree client area
  2. Go to Accounts → [Select your account] → Domains → [Find your domain] → Manage
  3. Find the Directory Status card, and look at the Directory displayed there

Understanding the folder structure:

  • Your first domain uses the htdocs folder
  • Additional domains get their own folders (e.g., example.com/htdocs)
  • If you delete and re-add your original domain, it will be treated as an additional domain and get a new folder

How to Fix: Upload your website files to the exact folder shown in your client area. If the folder is empty or missing, that’s why you’re seeing the 403 error.

2. Missing Index File

The Issue: When someone visits your site (like http://example.com/ or http://example.com/blog/), the server looks for a default file to display. If it can’t find one, you get a 403 error.

What the server looks for:
The server searches for these files in this exact order:

  1. index.php
  2. index.html
  3. index.htm
  4. index2.html

Important notes:

  • File names are case-sensitive - Index.php or index.HTML won’t work
  • The server only looks in the specific folder being accessed, not subfolders

How to Fix (choose one):

Option 1 (Recommended): Create an index file

  • Add an index.html or index.php file to your main folder
  • This file will be shown when people visit your site

Option 2: Show a file listing

  • Create a file called .htaccess in the folder
  • Add this line: Options +Indexes
  • Visitors will see a list of files instead of your webpage

Option 3: Set a custom default file

  • Create a file called .htaccess in the folder
  • Add this line: DirectoryIndex yourfile.html index.php index.html index.htm
  • Replace yourfile.html with your actual filename

3. Blocked Keywords in Your URL

The Issue: Certain keywords in your URL are automatically blocked by InfinityFree.

Blocked keywords and why:

“chat” - Live chat scripts constantly refresh pages, creating excessive server load

  • Examples: chat.php, /livechat/, /support/chat/

“includes” - This folder typically contains scripts meant to be loaded by other PHP files, not accessed directly by browsers (security measure)

  • Examples: /includes/functions.php, /includes/config.php

How to Fix:
Rename your files or folders to something else:

  • For chat: talk, messages, contact, support
  • For includes: pages, functions, scripts.

Important: Even if you rename chat-related files, hosting live chat scripts is still prohibited.

4. Your IP Address Is Blocked

The Issue: Your website’s .htaccess file might be blocking your own IP address.

How to Check:

  1. Access your website files via file manager or FTP
  2. Look for a file named .htaccess in your website folder
  3. Open the file and look for lines starting with deny from or allow from

How to Fix:

If you don’t want IP restrictions:

  • Remove all lines starting with deny from or allow from

If you see allow from all:

  • Look for lines like deny from [your IP address] and delete them

If you see deny from all:

  • Add a new line: allow from [your IP address]
  • You can find your IP address by searching “what is my IP” in Google

Still having trouble? Double-check that your files are in the exact folder path shown in your InfinityFree client area under Domains. Most 403 errors are caused by files being in the wrong location.

4 Likes
How to resolve the 403 Forbidden Error?
Website displaying 403 instead of my web page
Why I have Error 403 in my chat page but on other pages it works well
My sub domain returns error 403
Chat.php not working
403 Forbidden - Server or website configuration is blocking you from viewing this page
Chatgpt
CORS Policy blocked page
Error 110 smtp help
403 Error in Website
Blank Page on index.html
403 "Forbidden" error despite not using "include/require?"
My custom sub-domain not getting Live - can't it be automatic?
No zone file on the side of your Custom DNS
No zone file on the side of your Custom DNS
Question/Need Help regarding SSL Certificate
Verifying website on Yandex and Firefox leads to error 403
I cant access my url, 403 access denied
2 Issue in my website script
Site is down (403 Access denied)
2 Issue in my website script
Error 403 forbidden
Error code 403
New to hosting on a domain
403 Forbidden Server or website configuration is blocking you from viewing this page
Hello, I faced with the popular error - 403
404 page without reason
Hello, I faced with the popular error - 403
Website not working
Cannot connect to ftp
403 Forbidden Error
403 forbidden error
403 forbidden error
Website redirect to InfinityFree 403 page
403 Forbidden
Website URL
I need to solve this 404 error... I just deleted WP off my site and installed my own index.html
Error no access[(https://errors.infinityfree.net/errors/403/]
Si̇tem hata veri̇yor
403 Forbidden
Pagina web
403 yasak
403 Forbidden Error on Website - Need Assistance
I can't access my site
Listing directory public - 403 Access denied
403 forbidden error when trying to hit the rest api endpoint of a plugin installed on my site
ARROW CHAT supportment
Can't reach my domain
403 Forbidden error on my website after SSL installation."
Can it run the PHP and Js at the same time?
File is not Working
File is not Working
Wordpress: There was an error. You are probably offline
Access denied on my site upload
Broken Image (Google Drive Link)
Showing 403 Forbidden
403 error page
403 Forbidden - Help me, please
Unexpected response code 403 executing POST
Index.php
403 error simple html site
Need Help: Domain Shows IONOS Default Page Despite Setup
403 error
Help
403 Forbidden Server or website configuration is blocking you from viewing this page
How do i fix the 403 error?
Website not work 403 Forbidden
Website has been blocked
Cant access any website hosted on infinityfree in my schools wlan
403 Forbidden Server or website configuration is blocking you from viewing this page
Drfranknortonchat.rf.gd isnt appearing
403 Forbidden error
Error al ingresar a la pagina web
Ssl problem , what should i do?
Error al ingresar a la pagina web
Drfranknortonchat.rf.gd isnt appearing
Are there any problem with subdomain .free.nf ( not working with me )
403 error when loading website
403 error
Blocking from viewing
My domain doesn't work
Access denied
Erro 403
404 error
Try to open the page but it's not found
Error 404
Website files getting blocked by unknown 403 error
Can't connecting to my domain
Getting an error 403
Server or website configuration is blocking you from viewing this page
I got an error while making DNS record
No website?
Slims Library System not working
403 Access Denied
404 Forbidden Error when trying to access .EXE file on server
403 Forbidden
New account website not loading although domain approved
Cache (?) issue; can't update javascript script
You-dont-have-permission-to-access-panel-indexpl-php-on-this-server
Error getting frequently only on Infinityfree server
My website isn't showing after 72h
403 access denied
403 Forbidden error
403 Forbidden
Err_ssl_protocol_error
Hey people Im going try to renovate my website using php/mysql scripts
First time domain/website creation
404 error
404 error
403
Weird 403 Forbidden Error
My site reports error 403
When i try to route to that url it redirets me to the 403 error page
Need Help in Setting up the site
Image issue
"your new domain is now active" page despite site uploaded
Hosting Issue and Domain
Website 403
403 Forbidden
Sir my website is hack what should i do pls help me
Https not working
SSL issue
Php file not working, redirecting to 403 error page
CORS error
403 Access denied
403
Fetch DELETE redirects to errors.infinityfree.net/403/
Unable to access "chat" related documentation on my site
Page viewing error
Error in WP plugin for JS locked
Website displaying 403 instead of my web page
Phpmailer
How to put inclue file outside of htdocs?
H5ai file indexer causes suspension?
403 forbidden
403 forbidden
403 Access denied for chatapp : https://trade.epizy.com/ChatApp/users.php
The style sheets do not appear on my site, everything appears in black and white, it looks bad.
I cant access my admin panel
Error 403 on some png files
Hosting Website 403 Access denied
403 forbidden error
403 Forbidden
403 Forbidden
Background video not showing
Error 403 trying to access my website
JavaScript and mysql
PHP File Not Found
403 Error
Php just make communiction with database but infinity alarm 403 Forbidden
Error-Report: Access denied for user 'epiz_xxx'@'192.168.0.%' to database 'epiz_xxx_xxx'
20000 forum users - Awesome Special Event!
Errors 403
403 Error
404 problem
403 Forbidden
404 error
403 Forbidden Error (HELP PLS)
Could not reach the site
403 Forbidden
Uploaded CodeIgniter app...403 error
Server or website configuration is blocking you from viewing this page
My site is down
403 Forbien
403 Forbidden
403 error danied
CORS Policy Annoying Errors
403 Forbidden
403 Forbidden
Waf
Website is not displaying
Error 304
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at h
Help from merging from replit
Is there anyone knows how to change the chmod of files and folder?
SSL issue
403
403 Forbidden Error after SSL Certificate renewal
My website is bloking myself from etering it, even without any ip blokcer
403 Forbidden
I am not be able to access my site
Can anybody find my test website?
403 Forbidden
Add custom domain
Add custom domain
403 error
Why does it say 403?
Activation and deactivation
403 Forbidden my site
Website error
Which file is need to upload on file manager for web hosting
A directory keeps on redirecting me to the my 403 page
Can't reach this page
403 error forbidden - Updated Faux Pizza site
WordPress GUI problem
Can you help me
403 Error
403 Error
Server error
Request for Assistance with .htaccess File and Persistent Access Errors (403, 500, 505)
Request for Assistance with .htaccess File and Persistent Access Errors (403, 500, 505)
Directory refuses to see Index.htm in the htdocs folder
How to access my dashboard of the site
How to access my dashboard of the site
403 Access Denied
20000 forum users - Awesome Special Event!
My site is being redirected to kamalaharris.com! why?
403 error on site
I keep getting 403
403 Error on new files only
403 error
Cannot access my website
Domain .rf.gd showing random placeholder instead of index.html
Domain .rf.gd showing random placeholder instead of index.html
You don't have permission to access this resource
Upload Fails on All Websites — Even Basic HTML
Getting 403 even after uploading my project files in htdocs
Get error 403 upon arrival on a specific page
Err_too_many_redirects
File uploads on File Manager
When I try to enter my website, it is giving 403 error. How can I solve this problem?
Htaccess
Error 403
Please I want to activate the domain
Problem loading scripts on my website
403 Forbidden
Erro 403
Sitemi yaptim ve dosyaları olsuturdum fakat 403 hatası aliyorum
My page keps returning error
403 doesn't work to send message
Hello
Erro ao entrar no site
Issue with 403 Error when Posting a Blog with 'ChatGPT' in the URL
Chat System on my website
Account Active but Domain shows ERR_CONNECTION_REFUSED (DNS propagation is complete)
Why can't my site show any files named with "wechat"?
Hosting issue help me
I tried to run a n ftp and my site is down
403 Forbidden
Hosting support
Error
Persistent 403 Forbidden Error (Not .htaccess/Permissions) - Need WAF/ModSecurity Check
403 Forbidden error when sending a POST request to a PHP file
Mismatch configurations
Getting unexpected 403s from the hosting?
403 Error
So I get 403 Access denied
403 Forbidden In My Website
I no see my web site
Cannot make a backup folder
Error 403
403 Error
403 Forbidden Server or website configuration is blocking you from viewing this page
When will my account be activated?
Web Page Published successfully but page not opening in browser
Site showing 403 access denied
Delete subdomain to add another subdomain for current website but It can't work anymore
403 Forbidden error
CORS issue
403 Access denied error
Website 403
Trying to Implement GTM browser on elementor site error
Site reports 403 and 404
403 Forbidden error
Domain forwarding fails with message 'Cookies are not enabled'
403 Error
403 Error
Solve this error please
My domain is being redirected to Bodis
403 forbidden on image Neufchateau_20230918_152405.jpg
403 error
403 forbidden
Moving Domain Not Working
Failed directory privacy
Error 403 on a single page
I Have Folder That Am Not Able To Access And Code Also Not Getting Updated On Website
Redirect to infinityfree 403 page when I try to access my website
403
Error 500
403 Forbidden Server or website configuration is blocking you from viewing this page
Some images not loading on my page
403 Forbidden errors - guide didn't help
403 Forbidden Server or website configuration is blocking you from viewing this page
I got 403 forbidden for post
403 Forbidden
Unaccesstabled webiste
Website has been blocked
Website has been blocked
My site is not working
I get a 403 error when changed my domain
Website Display Error: 403 Forbidden
403 forbidden error in my site page not whole site
403 Forbidden on my system for a school project
Erorr on my chat.php (message system)

I should ask to clarify, and I hope that other people have this question as well to prevent my question from being self-centered:

Why do you block folders containing the words include/require? Is this for the safety regarding people who do not understand this principle well (the principle of include/require), preventing them from accidentally harming their website?

Or is there another reason behind blocking these folders that might otherwise cause problems to people or their website (or Infinityfree)?

3 Likes

Good question, but one I omitted for a reason.

The reason is that I didn’t block these URLs, but iFastNet did. And I don’t know for sure when or why they did this.

My guess, based on my experience with iFastNet and how they approach things, is that there was a security problem in some popular script or CMS which placed some shared code in the includes folder, which had security problems if these scripts were accessed directly. Like exposing sensitive data, or be used for spam. And to prevent this from being abused, the decision was made to block access to the files and folders that enabled these attacks.

But I didn’t include it in the article because it’s completely unverified.

4 Likes

You may also want to add that errors folder is also prohibited.

The “errors” folder does not lead to a 403 error though, so it does not belong in this article.

5 Likes

A post was split to a new topic: Verifying website on Yandex and Firefox leads to error 403

I just noticed that the block on files within the ‘includes’ folder is not working, or at least not how I expected it to work.

The includes folder
For security reasons, all files in a folder includes are blocked

I have a folder named includes in the htdocs folder. If I try to accesss the folder itself by typing devnotes.rf.gd/includes the server responds with a 403 forbidden message which is what I expected, however, if I type devnotes.rf.gd/includes/footer.php the browser renders:

page footer © Fishbite

FYI, the content of the footer.php file is simply:

    <footer><p>page footer &copy; Fishbite <?= $year ?></p></footer>
</body>
</html>

I expected to see the a 403 forbidden message again when I tried to access this footer.php file directly, or am I misunderstanding something?

1 Like

That is intentional. “includes” is a reserved system name.

2 Likes

I don’t think that is what they meant. Fishbite understands that accessing inside of the “includes” directory directly through the browser leads to a 403 Forbidden error (or at least should):

However, they see

Instead of a 403 Forbidden. And oddly enough, I see it too:


I tested it on my website, and sure enough, I got the same result:

5 Likes

Interesting finding indeed! Directly accessing devnotes.rf.gd/includes is expected if the directory doesn’t have an index file, which I assume it doesn’t have. But accessing any files in that directory used to not work.

It’s entirely possible that this was changed somehow. Maybe because the filters broke, maybe because they were no longer deemed relevant, or maybe because they have been tightened to only block specific paths within the includes folder to prevent issues to legitimate use cases.

Time will tell if we’ll ever get any support requests where this might play up.


And for people who were relying on the includes folder blocking direct access to their files, you can still replicate the old behavior by going to the includes directory, create a new file with the name .htaccess, and put the line Require all denied in it.

6 Likes