Not sure if that subject confused anyone, cant think of how to describe it.
Anyways, I have a PHP file that will allow webmasters on other sites to put content on their site by using something like this line of code:
<script src='http://www.gameworldx.com/js/script.php'></script>
Now, if people go to: http://www.gameworldx.com/js/script.php, they will see
something like this:
document.write(unescape("%3Ctable%20width%3D%22100%25%22%20border%3D%220%22%20bgcolor%3D%22FFFFFF%22%20bordercolor%"));
because of these lines of code:
printf('document.write(unescape("%s"));',
rawurlencode($data));
I dont want people to see the text, is there any way to redirect people to my homepage only if they type the address in their address bar or actually go to the page, and not if it is loaded using the script tag?