I want to allow a URL to be put inside php’s include(); but only certain domains – not every one. The other domains are owned by me, and on a separate server. If someone tries to include() any other domain bu these I want them disallowed.
If this is not possible, is there a work around?
My recommendation? Don’t do it with includes. Executing code in that fashion is like swallowing a chocolate covered cherry bomb.