Portal Home > Knowledgebase > Articles Database > Save javascript and php from seeing


Save javascript and php from seeing




Posted by ashras99, 01-14-2010, 03:11 PM
There is any way to save javascript/php from seeing to the casual user? Anyone view-source and click on the called javascript/php file to see the coding... i like to save only that file from open or unreadable for normal user. Don't bother about the code or scripts already added on the page.

Posted by pwalters09, 01-14-2010, 05:19 PM
with PHP you can only see the HTML output when viewing source code, but my best suggestion would be to use zend, sourceguardian or ioncube (ioncube is the best)

Posted by mattle, 01-14-2010, 05:51 PM
Don't write for web sites! You can't hide the source from the browser, which means you can't hide it from the user. Nobody visiting your site should be able to see your PHP code, however. For a demonstration, view the source for this page and look for

Posted by agni, 01-14-2010, 11:31 PM
We cannot hide Java Script from web users but we can ofcourse obfuscate it and make it difficult for reading. This link will help you : javascriptobfuscator.com BTW PHP is safe from web user since only HTML o/p can be seen using a GET call. Still if you want to hide your source code yo u can encode php using popular zend encoder or iron cube encoder. ioncube.com zend.com/en/products/guard/



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
virtuozzo venet0 down. (Views: 607)
UK Kitchen Spam (Views: 592)