Jump to content

Protect My Js And Css Using Php

Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...