Block POST requests through S3 + CloudFlare?

I use the S3 bucket to host a static site, and CloudFlare as a CDN.

I notice a large number of POST requests (it seems like spam attempts), and I try to block them so that I do not have to pay for this traffic.

Is there a way to block all POST requests in the Bucket Policy (this is probably the best choice)? Perhaps a way to block POST requests on CloudFlare?

+5
source share
1 answer

CloudFlare has a firewall application that can be used to whitelist or blacklist IP addresses, IP ranges, or countries. There seems to be no way to set rules based on the type of HTTP request to see if you can enter a blacklist of IP addresses instead.

Check if you have anything listed on the Threat Control dashboard. Theoretically, he should already dispute suspicious requests.

0
source

Source: https://habr.com/ru/post/1236798/


All Articles