php - Prevent site from being viewed as IPGet the solution ↓↓↓
If my website is an A record of 0.0.0.0 for my website example.com, how could I prevent visitors from going to 0.0.0.0? Is there a setting in Apache or PHP where I can block people from viewing the website from location that are not example.com?
Is there a $_SERVER variable I could use to get this information? I have read the PHP docs on server variables and I have seen nothing about getting the "host".
Share solution ↓
Link To Answer People are also looking for solutions of the problem: the process class relies on proc_open, which is not available on your php installation.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.