deepshah Posted January 24, 2009 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..... Link to comment Share on other sites More sharing options...
ProblemHelpPlease Posted January 24, 2009 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. Link to comment Share on other sites More sharing options...
jeffman Posted January 24, 2009 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. Link to comment Share on other sites More sharing options...
deepshah Posted January 25, 2009 Author 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...? Link to comment Share on other sites More sharing options...
jlhaslip Posted January 25, 2009 Share Posted January 25, 2009 can you send me link for any good javascript encryptor.Google is your friend. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.