Sorry for my stupidity, but this is driving me crazy, and I signed up just to ask this. I have a file (a javascript to be exact) that I want to ONLY be able to be viewed from the page it's executed on, but I want it to be forbidden to anyone who just types it into the URL. Can I do this with .htaccess? If not, is there any simple way to do it?