cammil
cammil

Reputation: 9929

How to restrict file upload size in AWS Application Load Balancer?

Is is possible to restrict the file upload size (of an http post request) at an AWS Application Load Balancer?

I want in general to restrict the upload size of a file, but I don't want the request to get to the web servers if the file size is too big. I am assuming my thinking is right in that rejecting the request earlier on gives better protection against DoS attacks, and in general will reduce the load on the web servers (thereby reducing costs).

Upvotes: 3

Views: 7326

Answers (1)

Marcin
Marcin

Reputation: 238527

You can't do this directly on ALB itself. However, you can associate Web Application Firewall with it.

With WAF you can setup size constraint rule on your ALB. This way you can block large requests hitting your web-servers.

Upvotes: 1

Related Questions