When you open your website, you may see an error page saying 429 Too Many Requests with the message Scanner activity detected.
This means your IP address made too many requests that resulted in a 404 Not Found error in a short period of time. The security system treats this as someone scanning websites for vulnerabilities and temporarily blocks your IP address.
Your website itself is not suspended or broken. Only visitors whose IP address triggered the block will see this error, which is why the site may still work from another network, like mobile data.
The block applies to your IP address on all websites hosted on InfinityFree, not just the website that caused it.
How long does the block last?
The first block lasts a few minutes. However, if your IP address keeps generating 404 errors after the block expires, it will be blocked again, and for longer each time. So if the 404 errors come from your own website, fix them before you continue using it (see below).
The block can’t be lifted manually, and support can’t remove it for you. It expires on its own.
Note: The Blocked IPs list in the control panel is not related to this error. You don’t need to change anything there.
Why does this happen to normal visitors?
Like the error message suggests, the purpose of the block is to keep out scanners: bad bots looking for sites and scripts to exploit. However, it’s possible for legitimate visitors to be blocked as well.
Every request to a file that doesn’t exist counts, including the images, stylesheets, scripts and fonts your pages load in the background.
If a page on your site links to a lot of missing files, every visit to that page generates many 404 errors. If you visit many pages with many 404 errors, your IP address can hit the limit. And because this happens on every visit, any visitor can get blocked, not just you.
404 errors are counted across all websites hosted on InfinityFree. If you work on multiple websites, the 404 errors from all of them count together. Similarly, if several people share an internet connection, like at a school or an office, they also share the same IP address, and their visits count together.
How to fix it
The block only happens because of the 404 errors, so the solution is to find and fix them.
Step 1: Open your website from another connection
You can’t investigate the problem while you’re blocked, because every request returns the 429 error. Open your website from a different network, like mobile data or a VPN, or wait until the block expires.
Step 2: Find the missing files
- Open your website in Chrome, Edge or Firefox.
- Press F12 to open the developer tools and go to the Network tab.
- Reload the page.
- Type
status-code:404in the filter box to show only the missing files.
Do this for the homepage and any other pages you visit often.
Step 3: Fix the missing files
For each file in the list, either upload the missing file or remove the reference to it from your website. Common causes are:
- Wrong file paths. Links that point to a location where the file doesn’t exist, usually because of a typo in the path or code that builds the URL incorrectly.
- Wrong capitalization. File names on the server are case sensitive, so
Logo.pngandlogo.pngare different files. Your own computer might not care, which is why this often goes unnoticed until the site is online. - Missing files. The file may have been deleted because it exceeded the file size limits, was created on your own computer but never uploaded, or was missed while migrating your website from another host.
- Bad rewrite rules. Rules in your .htaccess file that rewrite or redirect requests to the wrong location, so requests for files that do exist end up returning a 404 error.
- A missing favicon. Browsers request
/favicon.icoautomatically. If you don’t have one, every page view generates a 404 error.
Note: Online broken link checkers don’t work on websites hosted on InfinityFree. The browser security system blocks them, so they can’t load your pages.
Still stuck?
If you fixed the 404 errors and the problem keeps coming back, please ask for help on the forum. Include the URL of your website and the pages where you see the error.