Hi people :))
I am Fernando and I have made a web application with HTML and JavaScript.
Now I would like to hide the source code, or at least my JavaScript source
code. Is it possible? is there a method for doing it?
Thanks you from Palma de Mallorca, Spain
Fernando 13 2372
Fernando Fernández wrote: Hi people :))
I am Fernando and I have made a web application with HTML and JavaScript. Now I would like to hide the source code, or at least my JavaScript source code. Is it possible? is there a method for doing it?
Thanks you from Palma de Mallorca, Spain Fernando
This is actually the first question answered in this newsgroup FAQ: http://jibbering.com/faq/#FAQ4_1
The general rule is that it is impossible to hide a code that must be
parsed and executed and/or rendered on a visitor's system.
DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Firefox 1.0.4 :)
Hola Fernando,
yo me encontraba con el mismo problema
para ocultar el código, pero como te han
comentado antes es imposible, ya que
siempre está accesible en el cliente.
Yo había probado crearlo con php y luego
borrarlo en el server con 'unlink', pero
la copia del js ya estaba en el temporal
del cliente.
La única opción es la ofuscación del mismo,
quitando espacios en blanco, p.ej.
Saludos desde Manresa,
Enzo
Qué sorpresa encontrarse a alguien de habla hispana :)
Yo estaba haciendo cosas como guardar el código JavaScript en ficheros .JS
De este modo el código no se ve directamente, pero sigue viéndose el fichero
donde se esconde, porque siguen viendo la línea <...SRC="mi_fichero.js"...>
En fin, muchas gracias por vuestra ayuda.
Un saludo desde Palma de Mallorca
Fernando
"Enzo" <va**@mierda.pais> escribió en el mensaje
news:67**********************@telenews.teleline.es ... Hola Fernando,
yo me encontraba con el mismo problema para ocultar el código, pero como te han comentado antes es imposible, ya que siempre está accesible en el cliente. Yo había probado crearlo con php y luego borrarlo en el server con 'unlink', pero la copia del js ya estaba en el temporal del cliente.
La única opción es la ofuscación del mismo, quitando espacios en blanco, p.ej.
Saludos desde Manresa,
Enzo
Thanks you for your fast answer.
Actually I write my JavaScript code in JS files. In this way I have
separated my HTML file and my JS file. I don't know how much difficult is
now get my source code for the person who wants do it... but at least the
code is not in the same HTML file... is it a good idea?
Thanks you again
From Palma de Mallorca, Spain
Fernando
"DU" <dr*******@hotNOSPAMmail.com> escribió en el mensaje
news:3f************@uni-berlin.de... Fernando Fernández wrote: Hi people :))
I am Fernando and I have made a web application with HTML and
JavaScript. Now I would like to hide the source code, or at least my JavaScript
source code. Is it possible? is there a method for doing it?
Thanks you from Palma de Mallorca, Spain Fernando
This is actually the first question answered in this newsgroup FAQ: http://jibbering.com/faq/#FAQ4_1
The general rule is that it is impossible to hide a code that must be parsed and executed and/or rendered on a visitor's system.
DU -- The site said to use Internet Explorer 5 or better... so I switched to Firefox 1.0.4 :)
Ahora nos pasará la caballería por encima,
por no escribir en inglés ... ;-)
Un saludo,
Enzo
Fernando Fernández wrote: Thanks you for your fast answer.
Actually I write my JavaScript code in JS files. In this way I have separated my HTML file and my JS file. I don't know how much difficult is now get my source code for the person who wants do it... but at least the code is not in the same HTML file... is it a good idea?
Thanks you again From Palma de Mallorca, Spain Fernando
"DU" <dr*******@hotNOSPAMmail.com> escribió en el mensaje news:3f************@uni-berlin.de... Fernando Fernández wrote: Hi people :))
I am Fernando and I have made a web application with HTML and JavaScript. Now I would like to hide the source code, or at least my JavaScript source code. Is it possible? is there a method for doing it?
Thanks you from Palma de Mallorca, Spain Fernando
This is actually the first question answered in this newsgroup FAQ: http://jibbering.com/faq/#FAQ4_1
The general rule is that it is impossible to hide a code that must be parsed and executed and/or rendered on a visitor's system.
DU -- The site said to use Internet Explorer 5 or better... so I switched to Firefox 1.0.4 :)
It's a good idea in most cases, for various reasons (it modularises and
compartmentalises everything, keeping the JS with th JS and HTML with
the HTML, and encourages the programmer to keep things encapsulated and
portable, et cetera), but it doesn't obfuscate your code.
If someone looks at the code of the web page (which they will do if
they want to see your JS code, right?), they will immediately see the
<script src=... /> tag and know where to get your code.
There is no way to protect open source code from theft. Don't even
bother trying-- it just makes it harder for you to manage your own code.
DU wrote: Fernando Fernández wrote:
Hi people :))
I am Fernando and I have made a web application with HTML and JavaScript. Now I would like to hide the source code, or at least my JavaScript source code. Is it possible? is there a method for doing it?
Thanks you from Palma de Mallorca, Spain Fernando
This is actually the first question answered in this newsgroup FAQ: http://jibbering.com/faq/#FAQ4_1
The general rule is that it is impossible to hide a code that must be parsed and executed and/or rendered on a visitor's system.
DU
this is interesting.. the other day on google personalized pg I wanted
to check out their code and it was impossible.. they have this really
neat feature that I've never seen before, whereby you can drag a section
of the page (that is -- or at any rate looks like -- plain text) and
move it to wherever else you want it on the page.. I tried and tried to
check out their code but the right-click content menu is disabled and
also was not able to do save as, got alert saying sthg like this doc
can't be saved b/c file is missing or something.. so: either I did find
a web page out there that completely succeeds in hiding their code or
can someone here tell me how I can get this code? (again, this is on
google personalized page..) am very intrigued about this.. thank you..
Frances
Frances Del Rio wrote:
DU wrote:
Fernando Fernández wrote:
Hi people :))
I am Fernando and I have made a web application with HTML and JavaScript. Now I would like to hide the source code, or at least my JavaScript source code. Is it possible? is there a method for doing it?
Thanks you from Palma de Mallorca, Spain Fernando
This is actually the first question answered in this newsgroup FAQ: http://jibbering.com/faq/#FAQ4_1
The general rule is that it is impossible to hide a code that must be parsed and executed and/or rendered on a visitor's system.
DU
this is interesting.. the other day on google personalized pg I wanted to check out their code and it was impossible.. they have this really neat feature that I've never seen before, whereby you can drag a section of the page (that is -- or at any rate looks like -- plain text) and move it to wherever else you want it on the page.. I tried and tried to check out their code but the right-click content menu is disabled and also was not able to do save as, got alert saying sthg like this doc can't be saved b/c file is missing or something.. so: either I did find a web page out there that completely succeeds in hiding their code or can someone here tell me how I can get this code? (again, this is on google personalized page..) am very intrigued about this.. thank you..
Open the page in IE.
Open a second instance of IE and disable scripting.
Go back to the first window of IE. Right click>View Source.
And that is not even the easiest way.
view-source: <URL Here>
And view it.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
You can hide JS files by combining serverside script and javascript.
Ex:
In HTML file:
...
<% Session("javascript") = True %>
<script type="text/javascript" src="javascript.asp"></script>
...
In the javascript.asp file:
<%
If Session("javascript") Then
Response.ContentType = "application/x-javascript"
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
Session("javascript") = False
%>
//script goes here
<% else %>
This script is hidden :)
<% end if %>
.............
You can still get the script but it's not that easy.
:: jTag
*** Sent via Developersdex http://www.developersdex.com ***
jTag said the following on 11/10/2005 7:10 PM: You can hide JS files by combining serverside script and javascript.
No you can't.
Ex: In HTML file: ... <% Session("javascript") = True %> <script type="text/javascript" src="javascript.asp"></script> ...
Look in cache, open javascript.asp. There is your script. In the javascript.asp file: <% If Session("javascript") Then Response.ContentType = "application/x-javascript" Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" Session("javascript") = False %> //script goes here <% else %> This script is hidden :)
No it isn't, you just think it is.
<% end if %>
.............
You can still get the script but it's not that easy.
It's not "easy", it is trivially easy.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote:
[...] It's not "easy", it is trivially easy.
I'm sure 'trivially easy' is a tautology, but apt. :-p
--
Rob
Randy Webb wrote on 11 nov 2005 in comp.lang.javascript : You can still get the script but it's not that easy.
It's not "easy", it is trivially easy.
Randy, let's help them [out of their dream]:
Look for the src string with view source,
then go back to the original file,
where you are still in session!,
and type in the browser addressbar:
javascript :open('javascript.asp')
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: MOHSEN KASHANI |
last post by:
Hi,
I am trying to hide some form elements in a form by default and show/hide
depending on which radio button is clicked. This is what I have but it is
not working:
<head>
<style>
..noshow {...
|
by: FP |
last post by:
I'm new to Java Script.
I'm displaying comments people have made. Below each persons' comment
I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would
display an empty text field...
|
by: asilverpeach |
last post by:
Hey Guys!
Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out.
First,
In the following code clicking on the headers shows the...
|
by: pamate |
last post by:
hi,
I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers.
...
|
by: sara |
last post by:
Hi -
Is it possible to hide the detail section of a report at run time?
I have a report that prints all details, with summary lines. The user
would like the report ALSO with just summary lines....
|
by: Liquidtouch |
last post by:
I have been searching on this for awhile and cant find anything and playing around with it got me no where. I will start with what I am after and then explain what I have.
I have a table with 3...
|
by: ryrocks |
last post by:
Hi,
Im making a 'contact us' page. The user click on the div, this then reveals another larger div displaying more information giving the effect of the box expanding or dropping down.
I have 3...
|
by: Ralph |
last post by:
Hi,
I was reading effictive C++ and some other books again and they all tell
you about hiding implementation details (proxy/pimpl/inheritance) but
they never really explain when to use it.
I...
|
by: Doogie |
last post by:
Hi I have an img control I am trying to hide upon certain types of
commands in my code behind. When to hide it is directly tied to a
asp:dropdownlist control. So depending on what the user...
|
by: Debadatta Mishra |
last post by:
Introduction
In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |