How can you redirect a website not owned by us to another website on our computer?

modify the Hosts file ( Windows, Mac, Linux).