Is it possible to restrict file upload type(extension)?


Can you please let us know if there is option to restrict the file upload type(extension)? For example: We don’t want our users to upload .txt files, Kindly let us know.

That really depends on your file upload mechanism, but Cloudflare doesn’t have such a way block specific types of uploads. Though there may be something about the HTTP request that Cloudflare may be able to block.

You’re best off doing this in the backend of your site, I don’t think Cloudflare has the option to do this… officially anyways, there could be some hacky way of doing it with headers etc but your best bet is to do it on your back end.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.