GCP bucket and load balancer

OB
Bronze 1
Bronze 1

Hello, we have configured a bucket to host a static website.

We have configured the load balancing service with a public IP and HTTPS redirect, and we have set a A record in dns server pointing to the IP.

it works very well.

But the bucket is accessible using the IP in the url (https://IP)

And there is a security message because the certificate is only for the name of the site.

The question is how to disable the access through the URL https://IP.

Thanks for your answer

regards

 

 

 

3 2 100
2 REPLIES 2

Hi ,

There are basically 3 ways that can restrict public access to the Storage buckets. 

1. Using ‘Public access prevention’

2. Using the ‘Security Command Center’

3. Programmatically

Refer to this Medium article 'Restrict Public Access to a Bucket  for more info.

Best Regards,

Rafi

OB
Bronze 1
Bronze 1

Hello,

Thanks for your answer but it does not solve our problem which is to forbid the url with the IP.

https://35.x.x.x (public ip) (with certificate error).

Regards