I have a php results page that queries a MySQL database and produces results. The format to get results is like this: mypages.php?city=atlanta
This works great but its come to my attention that other people are using the results page and my database within a iFrame on their site without my permission. I have gone to a great deal of expense to compile this database and was wondering what I can do as far as includes in the page somehow to redirect the page to another page if the request does not originate from the domain the page is installed on?
I hope that makes sense? Please provide exact code to do this as this is new to me. Thanks for your help.