PDA

View Full Version : Block files from being downloaded from webservers



vehemoth
July 19th, 2011, 09:42 AM
I found this interesting article written by Richard Stallman, http://www.gnu.org/philosophy/javascript-trap.html
So has anything changed from then, is there now an extension to block files from downloading.
If not how could it be done?
and please no arguing about you know what, just nice friendly discussions

jhonan
July 19th, 2011, 11:06 AM
It's easy enough to block Javascript. What he seems to be talking about in that article is getting selective about running browser-based programs (Java, JavaScript, Flash, Silverlight) based on how free they are.

My interpretation is that he wants some way of identifying if the code is 'free' before running it in the browser. And by free he also means non-obfuscated sourcecode, with proper comments and whitespace.

vehemoth
July 20th, 2011, 12:54 AM
I was seeing the problem as how do you replace the javascript etc with your own version whilst blocking the one that the page came with.
If you can do that, then I think you can be on your way to solving the problem.

juancarlospaco
July 20th, 2011, 01:28 AM
Thats not true..., compacted code still being source code,
with enought skills you can give back its Whitespaces, comments, and blank lines,
im just learning JS and im able to compact and reverse the JS code.

You replace the javascript with your own version, its not hard.
Random example: drop a new line into your /etc/hosts file,
pointing www.anywebsite.com/script.js to localhost/MyOwnCustom.js

also ECMAScript != JavaScript != JavaApplets
:D

alphacrucis2
July 20th, 2011, 01:42 AM
Seems to be overzealous to me. A solution looking for a problem.

juancarlospaco
July 20th, 2011, 01:47 AM
a solution looking for a problem.

+1 ʘ⏠ʘ

jerenept
July 20th, 2011, 02:11 AM
I was seeing the problem as how do you replace the javascript etc with your own version whilst blocking the one that the page came with.
If you can do that, then I think you can be on your way to solving the problem.

This? (https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/)

vehemoth
July 20th, 2011, 05:01 AM
Thats not true..., compacted code still being source code,
with enought skills you can give back its Whitespaces, comments, and blank lines,
im just learning JS and im able to compact and reverse the JS code.
:D
With enough skill you can decompile a program into assembly and then into a higher level language.


This? (https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/)
The author of the article was worried that the script might start running before replaced by greasemonkey.

Yeah sorry for not being clear to start off with and maybe not right through.

jerenept
July 20th, 2011, 05:24 AM
With enough skill you can decompile a program into assembly and then into a higher level language.


The author of the article was worried that the script might start running before replaced by greasemonkey.

Yeah sorry for not being clear to start off with and maybe not right through.

Decompile into assembly? You seem to misunderstand what assembly language is.

vehemoth
July 20th, 2011, 05:38 AM
It's pretty much more easily read binary is it not.

unknownPoster
July 20th, 2011, 05:41 AM
It's pretty much more easily read binary is it not.

Not even close.

Read this: http://en.wikipedia.org/wiki/Assembly_language

vehemoth
July 20th, 2011, 05:55 AM
Not even close.

Read this: http://en.wikipedia.org/wiki/Assembly_language
Thank you for clarifying that :)

BeRoot ReBoot
July 20th, 2011, 02:36 PM
Fun fact: Non-obfuscated GPL code is, on average 15 Stallmans more free than obfuscated GPL code.

juancarlospaco
July 20th, 2011, 06:54 PM
obfuscated != compacted