Portal Home > Knowledgebase > Articles Database > How to protect a html / css?
How to protect a html / css?
Posted by copernic2006, 03-12-2011, 04:21 PM |
Hello,
Usually, I develop my sites with joomla and so I use htacess comes with joomla and also some plug-ins to enhance the security of the site.
I completely remade my website in html / css and then put it online, I like to have your opinion advice on how to protect a site and also on the contents of htacess.
Any help is welcome.
Thanks
Yahia
|
Posted by m8internet, 03-12-2011, 05:04 PM |
Protect it from what?
If you overprotect the code, then noone will be able to view it!
|
Posted by bear, 03-12-2011, 05:11 PM |
In order to display it in a browser it would need to be readable, either directly or after decrypting (if encrypted). Pointless, really, as it can't be "protected", only obfuscated.
|
Posted by copernic2006, 03-12-2011, 06:11 PM |
Thank you for taking the time to answer the question may seem simplistic, even silly, but not for the novice I am .
What I wanted to have are recommendations for example putting an empty file index in the css files and images to hide the file tree.
A feedback on the content of the file htacess help me enormously (as quoted in my first post, I rely on reflex and a user of joomla possible that this approach is not to do).
Thank you.
|
Posted by bear, 03-12-2011, 06:28 PM |
Oh, I misunderstood. I thought you were trying to hide the code that makes up an HTML page.
If you're able to use .htaccess, you can simply put:
Options -Indexes
If that's in the site's root folder, it covers them all.
|
Posted by copernic2006, 03-12-2011, 06:45 PM |
English is not my own language , I use google translate, this could mislead you.
Thank you for your tip, I'd like to hear your opinion on the following content (htacess):
and finally to improve site performance:
Just for information, this is the search results on google (I have no knowledge about the command used in the file htacess).
Thank you very much for your help.
Yahia
|
Add to Favourites Print this Article
Also Read