Hello to every body who visit this thread
I want to prevent view source(html tags & javascript scripts) of the page with php. I've studied php manual withuot any success how can I do it? Is it possible
I don't see how you can hide the source that gets sent to the client browser. Code within the PHP tags would be processed at the server end anyway. So data such as database login wouldn't be sent to the client machine anyway.
I know ! But I want prevent show client source of the web. Ofcourse I think that I ask wrong, however generally I want to hide html tags and javascript scripts. What is the solution?
I you are writing an application where you want to hide all your code you can use something like Zend or Ioncube.
For Javascript you can use encyption to make it 'harder' to read and copy. If you tell what this javascript does and why should it be protected maybe there is an alternative to having the code more secure.
There's one way to do it, there's one program called HTML Encryptor, you can google search to that. I used to use it a while back.. but it seems useless and crappy because it changed several things... XD a.k.a it's not a reliable software.. but pretty nice, they encrypted everything..
One way I can think of which can prevent a novice computer literate person is by using a No Right Click Java Script.
This method can only slow down a person from viewing your source as there are many other way to get the source.
Also you may want to read this Article on why not to use a No Right Click Java Script : http://websiteowner.info/articles/et...rightclick.asp
The Article also mentions few ways to prevent source code to be easily read.
Hope that helps...
Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.
This thread is more than three months old
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.