Restricted because of miss understanding the files hierarchy?

Hello there, again. I am a Laravel dev and was wondering if I can make a domain or subdomain in InfinityFree point at a certain directory in your project (e.g. the home directory for my domain example.com is “myaccount/example.com/public/” but apparently it only supports the htdocs) so I tried to do something like this:

so I have an index file in “htdocs” that points at the application core in “core” (which is outside of the htdocs that was associated to this specific domain), It did work when I had it set up but now it doesn’t and if you visit this domain that was working for the first day, it doesn’t now

playpal.great-site.net

so my question is, Is my account restricted or something because I did this or did something go wrong or is there a configuration missing, if restricted — is there a way to make a domain like this point at a certian directory or this is overkill for a free shared hosting plan like IF’s?

You can’t put files outside of the root folder, so I’m not sure why it appeared to be working before.

5 Likes

Alright regardless of this, I have a simple <?php echo “123”; index.php page in the htdocs of my domain (http://playpal.great-site.net/) and it shows this error:

I’m not sure if this is because I uploaded files outside the htdocs earlier or what exactly the issue is, could my account be restricted by InfinityFree without a notice, an email or a mark on my InfinifyFree’s dashboard?

Your index.php page works exactly as it should when I try to visit it:


You’re experiencing a different issue than you think, possibly the great-site.net domain being blocked by your ISP.

If you had done something that was actually against the TOS you’d be suspended which would result in your site redirecting to the official suspension page. It wouldn’t cause a random timeout error.

6 Likes

It’s not supposed to work. PHP code on websites is supposed to only be able to access files within the htdocs folder of that website. If it was possible, then that must have been a temporary issue that has now been fixed.

So to fix this, you’ll need to move the core folder within the htdocs folder to be able to use it.

The connection timed out error is a network issue. It’s because you are blocked from accessing our servers, either by us or by something on your end (like a firewall, antivirus or other security filter).

It’s not an account level restriction, and it’s not caused by anything you did on your website.

4 Likes

Update: the connection timed out error was a block on our end. Your IP address (or rather the network your IP address belongs to) was blocked due to abnormal traffic. This block has now been lifted, so you should be able to access your site again now.

8 Likes

That’s what I thought especially after a guy commented on this post that he was able to visit the website. I as well can visit it now, Thanks.

Two quick questions,

  1. So this block has nothing to do with me having files outside of the htdocs directory whatsoever?
  2. If no, what did cause this block in my case and how can I avoid getting blocked in the future?

The block was due to abnormal traffic. This probably had nothing to do with you.

Most the time, you won’t have a static IP, so your isp might switch out your IP without warning.

Ultimately there’s nothing you can do to stop other people in the ip range doing things that might result in a block.

4 Likes

miss understanding? Who is she? Or was that a misunderstanding? (I always wanted a miss who could understand me. :rofl: )

1 Like

Haha I just noticed that, English is not my first language and I don’t use AI to write for me yet.