The similar question(s) has been asked many times but for i) setting up headers for emails in php and/or ii) setting up headers for cURL. However, my question is different. I tried my best to find the answer on SO but I couldn't find.
I am showing some contents of different websites on my websites. I added their JS code to show the contents. Most of my visitors are from India and they do not have much contents to show for Indian visitors. I want to change PHP headers so when anybody comes with Indian IP, my page shows to JS code a UK or US IP.
I am familiar with PHP headers but I do not know how to do it. I am not looking for a working code but an example would be more than enough.
header("Cache-Control: no-cache");
header("Pragma: no-cache");