deepshah 0 Posted January 24, 2009 Report Share Posted January 24, 2009 For security reason, I want my js and css file can not be shown to anyone or is it possible to encrypt my js and css file using php?Is it possible with php ?If anyone has solution, please help me.Thanks in advance..... Quote Link to post Share on other sites
ProblemHelpPlease 6 Posted January 24, 2009 Report Share Posted January 24, 2009 For security reason, I want my js and css file can not be shown to anyone or is it possible to encrypt my js and css file using php?Is it possible with php ?If anyone has solution, please help me.Thanks in advance.....As js and css run client side in the browser they do not have the same security level as a PHP script that runs server side. You can make slightly more secure code if you can include js and css in seperate files rather than directly in your page, but it is still easy to access the files remotely so this is not an ideall solution. Quote Link to post Share on other sites
jeffman 86 Posted January 24, 2009 Report Share Posted January 24, 2009 The difficulty is that Javascript and CSS cannot function in an encrypted form. The browser would not understand them.You might try Googling for a javascript obfuscator. These make javascript difficult for humans to understand, and are a good defense against casual plagiarist.But nothing can stop someone determined to get your code. Quote Link to post Share on other sites
deepshah 0 Posted January 25, 2009 Author Report Share Posted January 25, 2009 Okie..Thanks guys...but can you send me link for any good javascript encryptor.And can also describe that how can i use that...? Quote Link to post Share on other sites
jlhaslip 1 Posted January 25, 2009 Report Share Posted January 25, 2009 can you send me link for any good javascript encryptor.Google is your friend. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.