Why is there a security system

The security system is to prevent usage of non-website things, but what’s wrong with people hosting APIs?

Infinityfree is only for web hosting purposes, not a place for hosting big applications and APIs. The security system is also present to prevent abuse. You can upgrade to premium hosting to leverage such features!

It may be worth your time reading these: