Is there a way to have A records that change depending on the person using the service?

Hello Cloudflare Community!

First of all, this is my first post here, so all my apologies if I have chosen the wrong category/did something wrong.

I have a group of around 10 users that were selected to access a different version of my website with beta features that is on another server (with therefore, another IP address).

I was wondering if it would be possible to have the A record for my website to change to the IP address of the second server only when the user has a cookie or when the request comes from a certain IP.

Thanks in advance!
Meaxis

Not out of the box, but you could create a custom Worker script which routes incoming requests depending on said cookie or client IP address to the desired origin address.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.