Forum Moderators: phranque
I have some documents embedded in iFrames, however some people sift through my html to find the addresses. I thought to change the parent files using a js script to call the file. However, if someone really wanted to find the file, all they would need to do is call up my js script.
I am wondering if there is a way to hide js and css files. Is it possible to place these files "above" the root directory? Or... is it possible to place an .htaccess file in the js and css directory to control access to those files?
Your help would be greatly appreciated.
ricci
There is nothing you can do other than raising the barrier of difficulty - but that comes with problems of its own, particularly with accessibility, spidering problems and dependance on the presence of client-side scripting languages.
It's just the nature of the medium: your HTML, CSS, graphics and Javascript files are all accessible at all times. Anything you try to do to restrict access is simply window-dressing, and usually ineffective. What's more, there's very little to protect, because it is not the markup you use but the essence of a design and the content within which matters.
Thanks again,
ricci