PDA

View Full Version : Stopping View Source?



HabbDance
24-01-2009, 01:41 PM
Does anyone know a code to protect your source like shown below? Not stop right clicking.. actually stopping view source.

Before you say it's impossible, take a look at this: http://www.habbofurnivalues.com/tradecalc/ (View Source)

+rep to help :)

Blinger1
24-01-2009, 01:45 PM
<!Error Reading Source>
































































































































































































































































































<html>


add this to your code ;) (just put all that above the top of your code. If you scroll down there is just heaps of enter buttons.

HabbDance
24-01-2009, 01:59 PM
<!Error Reading Source>
































































































































































































































































































<html>


add this to your code ;) (just put all that above the top of your code. If you scroll down there is just heaps of enter buttons.

Oh wow, I'm dumb :) Thanks +Rep

Tim.
24-01-2009, 02:10 PM
Ye they just entered like a million times.

--ss--
24-01-2009, 02:14 PM
They've just hidden it by making you scroll to see it.
You can always encrypt it in javascript so you enter it all as javascript and the javascript then writes and executrs the source: http://scriptasylum.com/tutorials/encdec/encode-decode.html

Agnostic Bear
24-01-2009, 03:13 PM
Does anyone know a code to protect your source like shown below? Not stop right clicking.. actually stopping view source.

Before you say it's impossible, take a look at this: http://www.habbofurnivalues.com/tradecalc/ (View Source)

+rep to help :)

You can't. That's just the nature of the internet.

kk.
24-01-2009, 07:17 PM
yeh as JB said, i think its impossible to hide it from the public. You can jsut turn javascript off on your browser and then you can access it.

--ss--
24-01-2009, 07:19 PM
yeh as JB said, i think its impossible to hide it from the public. You can jsut turn javascript off on your browser and then you can access it.
Nope won't make a difference, the source will still be in random jibberish, it encodes all the letters to % values (forogt what it's called) which the browser can understand but it's hard for a human to deciepher without converting it back to ASCII.

Trying to remember where I saw it >.<

kk.
24-01-2009, 07:25 PM
yeh but you could still decrypt it and read the source, if you REALLYY wanted to

Protege
24-01-2009, 08:02 PM
Get the source

Ctrl + A then press Ctrl + X
then Ctrl + S

and uploads.

Its called AXS ( Automated Xcryption System )


orrr

u can screenshot ur pageeee
and lyk upload dat screenshot
and den ur sauce is like <img src="screenshot.BMP" />


Sorry, you really cant encrypt a client side script, people say you can hide them etc but really its dled into ur temp history so ur browser can change it into data dat is viewable 2 u!!

I tink dats rite i had too many milk way bars ;( GOT ME HIIUGHH AND A KITEEE

Trigs
24-01-2009, 09:15 PM
It's impossible.

Dada
24-01-2009, 10:52 PM
The only thing you can do is disable right click and leave a huge blank space up the top.
Then atleast the people who cant disable javascript, scroll down, or save the page will fail.

Moh
24-01-2009, 11:11 PM
The only stuff worth hiding if your javascript.

You could just do what Habbo do and make it bloody impossible to sort out :@
http://images.habbohotel.com/habboweb/29_2c544f5514627b2e3fbe820caccb2013/8/web-gallery/static/js/fullcontent.js

Iszak
24-01-2009, 11:16 PM
Lets face it you can only make it difficult for someone to read the code, you can't stop people from viewing it. You can use javascript to disable right click, sure, but you can just go view->page source in Firefox or whatever in your browser. If not that you can just as easily disable javascript in Firefox or their browser. The blank space just confusing people and escaped HTML with javascript what if they have it disabled? That means no site. As for Jack's comment Habbo does that no doubt to save on bandwidth and loading time, as it compresses the javascript so instead of it being 100kb it's like 40kb and for people on slow internet connections it saves loading time.

Moh
24-01-2009, 11:25 PM
Lets face it you can only make it difficult for someone to read the code, you can't stop people from viewing it. You can use javascript to disable right click, sure, but you can just go view->page source in Firefox or whatever in your browser. If not that you can just as easily disable javascript in Firefox or their browser. The blank space just confusing people and escaped HTML with javascript what if they have it disabled? That means no site. As for Jack's comment Habbo does that no doubt to save on bandwidth and loading time, as it compresses the javascript so instead of it being 100kb it's like 40kb and for people on slow internet connections it saves loading time.
Then it has two purposes ;D

Agnostic Bear
25-01-2009, 05:47 AM
The only stuff worth hiding if your javascript.

You could just do what Habbo do and make it bloody impossible to sort out :@
http://images.habbohotel.com/habboweb/29_2c544f5514627b2e3fbe820caccb2013/8/web-gallery/static/js/fullcontent.js

http://imgho.st/img/dlu_picture-3.png

Sluing
25-01-2009, 10:38 AM
Just a thought,

Could you use a php include in the index and then forbidden them to view any internal links unless they click a link? O.o Not sure if I make sense?

Also, is the 'view source' of the page content seen, or is it of the actual source? If it's the actual source, then this may work?

Nick.
27-01-2009, 02:27 PM
Just a thought,

Could you use a php include in the index and then forbidden them to view any internal links unless they click a link? O.o Not sure if I make sense?

Also, is the 'view source' of the page content seen, or is it of the actual source? If it's the actual source, then this may work?
No because a PHP include will just replace the include with the source code.

cunning
28-01-2009, 07:52 AM
The only thing you can do is disable right click and leave a huge blank space up the top.
Then atleast the people who cant disable javascript, scroll down, or save the page will fail.

This was probably the useless thing said in the thread. Most browsers if not all have a link to view the source.

Jackboy
28-01-2009, 11:12 AM
Oh wow, I'm dumb :) Thanks +Rep

Don't worry, you're American.

DeejayMachoo$
28-01-2009, 01:29 PM
Its not impossible too hide the souce.. well it is just make it hard like this:

http://www.tehupload.com/uploads/534165186fd0ea7hiddensource.PNG

And make the javascript complicated too understand.. weird variables ect, put all your code on one line stuff like that :).

Only problem here is if the person has Js turned off is then no site for them xD

Protege
28-01-2009, 05:20 PM
Are u serious?

Client side coding is processed by the client, so it needs to have the code in order to process.

L?KE
28-01-2009, 07:53 PM
Surely just making it all compressed as someone previously said is the best way. Obviously keep one with white space for additions and stuff, but who in their right mind will actually go through and sort it.

Protege
28-01-2009, 07:57 PM
omg
I KNOW THE ANSWEEERRR

a program.

cunning
28-01-2009, 08:36 PM
Aren't you going to share with us?

Want to hide these adverts? Register an account for free!