I am wondering is it possible to hide javascript and css links from showing up in view source.
I have seen a few sites where the first page in view source consists of so many blank lines...are they hiding something...if yes, how do they do it???
Is it possible to hide javascript or few link tags?[SOLVED]
Moderator: General Moderators
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
Is it possible to hide javascript or few link tags?[SOLVED]
Last edited by raghavan20 on Thu Oct 20, 2005 11:36 am, edited 1 time in total.
Re: Is it possible to hide javascript or a few link tags??
No.raghavan20 wrote:I am wondering is it possible to hide javascript and css links from showing up in view source.
You can obscure the display or you can delay the display, but you cannot hide the display.
You'd have to give specific examples so we could give specific answers for that particular page.raghavan20 wrote:I have seen a few sites where the first page in view source consists of so many blank lines...are they hiding something...if yes, how do they do it???
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
the blank line thing is purely: the page has, most often, been encoded into a Javascript encoding. The page code is output with lots of blank lines before the javascript is emitted giving the illusion of no code on the page to a lot of people.. nothing new, and nothing note worthy. Hiding one's page code isn't beneficial from most stand points. The only time it's half usable is when it actually compresses the page code, but I'd much rather use gz compression of the HTTP response first.
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
Obfuscating code that reaches your users' browser is pretty pointless, I'd say. It's very likely that you don't have anything worth hiding anyway. Websites with awesome designs show their code, so why shouldn't you? If it's good, show it off! Don't hide it! You can't do it properly anyway, so why bother...