My site has a 5xx error on Google and Bing

Website URL

Error Message

The error on Google Search Controls is on any page of the site: Page Availability
Page Cannot Be Indexed: Server Error (5xx).

Also on Bing I noticed for example that the robot.txt file it extracted shows it in the dashboard with this content:

<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("4a3890923edb39284efe22b3d88c158c");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>

Other Information

Until recently, everything worked properly and so on. And I haven’t recently edited my site, I think it’s a problem with infinityfree’s security system that blocks Google bots and bingbots

Website URL

Error Message

Google Search control says on any page of my site, even the home page as seen in the screenshot, it gives a 5Ă—Ă— error

Other Information

I haven’t changed my site recently so I don’t know what the problem could be…

Sorry for the screenshot in Italian but I don’t know how to open search control in English.

Maybe your site had a 503 error when google crawled the page? or maybe the security system is blocking. wait for admin reply anyway


I had a look in Google Search Console for the entire domain to see if there was some (new) issue affecting many sites. But there doesn’t seem to be anything like that. Most websites seem to be getting crawled and indexed just fine. So as far as I can tell, this issue you’re experiencing is something specific to your website.

Is there anything in the code on your website that could result in an error to be served to the Google crawler?


I don’t know… I’ll try to check my code more carefully, mostly the thing that seems strange to me is what Bing extracted for the robot.txt file. Thanks for the attention.

EDIT: Going to exclusion I finally managed to find the problem!

I did some tests and it could be a problem with my site perhaps, but I don’t really know how to figure it out because the code seems “clean” to me and the browser console doesn’t find any errors. Could someone have some ideas? (obviously I don’t want to know the problem but a general idea on what this problem could hypothetically cause).