Hide source of the page

Thread Solved

Join Date: Jul 2007
Posts: 8
Reputation: MB1765 is an unknown quantity at this point 
Solved Threads: 0
MB1765 MB1765 is offline Offline
Newbie Poster

Hide source of the page

 
0
  #1
Jul 15th, 2007
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
Last edited by MB1765; Jul 15th, 2007 at 5:25 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 162
Reputation: Cerberus is an unknown quantity at this point 
Solved Threads: 14
Cerberus Cerberus is offline Offline
Junior Poster

Re: Hide source of the page

 
0
  #2
Jul 15th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 8
Reputation: MB1765 is an unknown quantity at this point 
Solved Threads: 0
MB1765 MB1765 is offline Offline
Newbie Poster

Re: Hide source of the page

 
0
  #3
Jul 15th, 2007
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?
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 162
Reputation: Cerberus is an unknown quantity at this point 
Solved Threads: 14
Cerberus Cerberus is offline Offline
Junior Poster

Re: Hide source of the page

 
0
  #4
Jul 15th, 2007
I don't think this is possible because your web browser requires the source and viewing the source code is a function of the browser.

Is there any particular reason you need to do this?
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 8
Reputation: MB1765 is an unknown quantity at this point 
Solved Threads: 0
MB1765 MB1765 is offline Offline
Newbie Poster

Re: Hide source of the page

 
0
  #5
Jul 15th, 2007
Yes, I want to hide my javascript functions. I want to block it. but you right it seems impossible with php.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Hide source of the page

 
0
  #6
Jul 15th, 2007
I don't think this is possible. Encryption might be an idea but that's very very doubtful.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: Hide source of the page

 
0
  #7
Jul 15th, 2007
You can't reliably do it. If someone wants it they will get it. If you don't want people to have it, don't put it on thew web.

FYI, your javascript is not special. If you can write it, so can anyone else who knows javascript. Hiding it is pointless.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 21
Reputation: dezignwork is an unknown quantity at this point 
Solved Threads: 2
dezignwork's Avatar
dezignwork dezignwork is offline Offline
Newbie Poster

Re: Hide source of the page

 
0
  #8
Jul 16th, 2007
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.

Tim
hosting :: development :: design
dezignwork.com
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 83
Reputation: ProgrammersTalk is an unknown quantity at this point 
Solved Threads: 7
ProgrammersTalk's Avatar
ProgrammersTalk ProgrammersTalk is offline Offline
Junior Poster in Training

Re: Hide source of the page

 
0
  #9
Jul 16th, 2007
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..
The ProgrammersTalk Community | Programming & Marketing | Buying & Selling Script
Hang out place of novice and intermediate programmers
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

Re: Hide source of the page

 
0
  #10
Jul 16th, 2007
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...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC