Search code examples
app-engine-flexible

Is there a way to block HTTP on GCP AppEngine


I am trying to find how to block HTTP access from GCP AppEngine, not finding many details out there. I feel that it may not possible.

Can someone shed some light on this - Via code or network setting?


Solution

  • As I understand, there is not possible to block the Http access in App Engine. You can redirect http to https traffic using the secure handler implemented in App engine Standard.

    For App Engine Flex, regarding blocking the port 80 alternative, you can implement a Compute VM's and set a firewall rule and then redirect to App Engine.

    Lastly, keep in mind that in the App Engine Firewall you need to specify the IP ranges that you want to allow or deny, it's not possible deny actual ports.