I want to use file_get_contentsa proxy server implementation so that I can execute AJAX requests with cross domains.
The query string will be used to specify the URL file_get_contents. Now the problem is that people can quench the query string around to read local files on the server. I do not want it. Can someone get a function to sanitize a query string to accept only URLs and not local files, i.e.:
source
share