Check out this guide that explains what is hosts files and how to change it on macOS Ventura operating system.
Here's a step-by-step guide on how to change the hosts file on a Mac computer.