Send EU visitors to a Google Cloud Storage bucket
Route all traffic from EU visitors to a Google Cloud Storage bucket using Cloud Connector.
To route requests from visitors in the European Union to a Google Cloud Storage bucket:
- 
In the Cloudflare dashboard, go to the Cloud Connector page.
Go to Cloud Connector - 
Select Google Cloud Storage as your cloud provider.
 - 
Enter the bucket URL. You can structure the URL in two ways:
- Subdomain-style URL: For 
<BUCKET_NAME>.storage.googleapis.com, your files should be organized in the root of the bucket. For example,https://<YOUR_HOSTNAME>/index.htmlwill map tohttps://<BUCKET_NAME>.storage.googleapis.com/index.html. - URI path-style URL: If you set the hostname to 
storage.googleapis.com, your bucket must include folders corresponding to the intended URI paths. For example, if you wanthttps://<YOUR_HOSTNAME>/eu/index.htmlto map to a file in your bucket, the file should be placed athttps://storage.googleapis.com/<BUCKET_NAME>/eu/index.html. 
 - Subdomain-style URL: For 
 - 
(Optional) Use URL Rewrite Rules to adjust the URL structure. For example, you can create a URL rewrite that changes
/euto/<BUCKET_NAME>to match the URI path-style URL structure. - 
(Optional) Use Cache Rules to adjust the caching behavior for objects returned from the bucket. For example, you can create a cache rule that caches every returned object matching the
/euURI path for seven days (defined through the Edge TTL setting). - 
Select Next and enter a descriptive name like
Route EU visitors to GCPin Cloud Connector name. - 
Under If, select Custom filter expression and enter the following expression:
(ip.src.is_in_european_union)
This expression targets traffic from European Union users. - 
Select Deploy to activate the rule.
 
This configuration will route traffic from EU visitors to your Google Cloud Storage bucket. Make sure to replace <YOUR_HOSTNAME> with your actual hostname and adjust the example paths according to your setup.
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Directory
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- © 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark
 -