Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Disabling storage bucket's public url while keeping it publicly accessible

Hey everyone

Is it possible to disable the public URL on a bucket e.g. 

https://some-bucket-name.storage.googleapis.com

while still having the bucket publicly accessible via an HTTPS load balancer + DNS record? 

I ask because I want to use cloud armor to restrict what IPs can access the bucket in lieu of basic auth. However having the public URL defeats the point of this so I was wondering if it's possible to disable that URL. 

If not are there ways I can achieve restricting public access to a bucket via something like basic auth or IP restrictions?

1 1 2,926