Asked by duncanb7
at 2024-04-02 10:46:05
Point:500 Replies:13 POST_ID:828461USER_ID:11059
Topic:
Hypertext Markup Language (HTML);Active Server Pages (ASP);PHP Scripting Language
I just write one html code file as attached, and it run in IE broswer as simple html.file.
The question how I can avoid the code to be seen by other users except the code output ?
I have google it, someone say I need to switch the html code to asp and php code.
And I test the php and asp code before in W3C school webiste, but php and asp code is also easily seen by viewers in web.
Any suggestion for internet language to hidding the code at least some part of it ?
If possible, could you provide a simple code for study or good wesite to start.
Please advise
Duncan
The question how I can avoid the code to be seen by other users except the code output ?
I have google it, someone say I need to switch the html code to asp and php code.
And I test the php and asp code before in W3C school webiste, but php and asp code is also easily seen by viewers in web.
Any suggestion for internet language to hidding the code at least some part of it ?
If possible, could you provide a simple code for study or good wesite to start.
Please advise
Duncan
Expert: AlexPace replied at 2024-04-02 19:42:40
You can only hide server-side stuff. Like the HTML, any javascript or executed by the client will also be visible. If you dig around in the browser cache you can find it all.
Assisted Solution
Expert: Dave Baldwin replied at 2024-04-02 19:24:41
100 points EXCELLENT
Depends. What are you trying to hide? The HTML that the browser uses to display the page will always be visible.
Author: duncanb7 replied at 2024-04-02 19:06:01
today i test it with firebug, debugger , all code could been seen even asp file
So in other words, if what you said correct, the only way to hidden the code is converting all javascript code
into php so people could not read it , Is it right ?
So in other words, if what you said correct, the only way to hidden the code is converting all javascript code
into php so people could not read it , Is it right ?
Expert: Dave Baldwin replied at 2024-04-02 13:46:04
Javascript has to be stored where it can be downloaded or else the browser can't download it and run it. For the browser to run it, it has to be listed in the source code for the web page. I can look at the source by clicking on "View Source" and get the location of the javascript file and then download it.
Author: duncanb7 replied at 2024-04-02 12:20:21
aarontmosky,
Clarify it a little bit, you mean, even I stored the script code into other js file stored in my doma in site.
People could also download it, Is it right ? but I don't put it into my ftp directory, how they download.
And if using firebug add-on firefox, please could read all hidden javascritp code, is it right ?
in other words, if what you said correct, the only way to hidden the code is converting all javascript code
into php or asp code so people could not read it , Is it right ?
Clarify it a little bit, you mean, even I stored the script code into other js file stored in my doma in site.
People could also download it, Is it right ? but I don't put it into my ftp directory, how they download.
And if using firebug add-on firefox, please could read all hidden javascritp code, is it right ?
in other words, if what you said correct, the only way to hidden the code is converting all javascript code
into php or asp code so people could not read it , Is it right ?
Expert: Dave Baldwin replied at 2024-04-02 11:48:28
ASP, ASP.NET and PHP are server side languages and you can't see that code. However, they send HTML to the browser and that can be seen along with any javascript and CSS. If the browser can't 'see' it, it can't be executed.
There are things you can do on the server and things that have to done in the browser. Anything done in the browser can be seen.
There are things you can do on the server and things that have to done in the browser. Anything done in the browser can be seen.
Assisted Solution
Expert: Aaron Tomosky replied at 2024-04-02 11:26:43
100 points EXCELLENT
Yes, but you can just download the js file or watch it process in firebug.
You are asking how to print a book so people can read the words but not see the letters. You can't. This exact same question pops up every few weeks an we give the exact same answer every time.
You are asking how to print a book so people can read the words but not see the letters. You can't. This exact same question pops up every few weeks an we give the exact same answer every time.
Author: duncanb7 replied at 2024-04-02 11:23:27
how can I call javascript function so people could not read my code ?
I mean I put all of my code into javascript function and call it on
init is javascript script file stored in my domain
<body init():>
<body>
IS it possible, I have seen a lot of website , we cound not see their code because
they call it in javascript function and in asp ?
I mean I put all of my code into javascript function and call it on
init is javascript script file stored in my domain
<body init():>
<body>
IS it possible, I have seen a lot of website , we cound not see their code because
they call it in javascript function and in asp ?
Expert: Dave Baldwin replied at 2024-04-02 11:09:25
Anything you use to put a page in my browser can be found and downloaded. 'Hiding' code does not increase your security at all. Any method of hiding code just hides it from the people who mostly don't care. The people who might care, from crooks to government agencies, have ways of seeing your code.
Assisted Solution
Expert: IanTh replied at 2024-04-02 11:01:34
100 points EXCELLENT
you will need to disable right click
see
http://www.hypergurl.com/norightclick.html
hope it helps
it wont stop absolute persistant blighters as there are ways around that but it will stop casual right clickers
see
http://www.hypergurl.com/norightclick.html
hope it helps
it wont stop absolute persistant blighters as there are ways around that but it will stop casual right clickers
Accepted Solution
Expert: Aaron Tomosky replied at 2024-04-02 10:58:27
100 points EXCELLENT
Php and asp eventually output HTML which can always be seen by a browser. What you can't see is the php or asp Source code that created the HTML. The only way to hide more is to use JavaScript but its never really totally hidden because for the browser to display it the user can read it. You could do all you pages as image maps but that's just silly