p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   HTML Code Clinic (http://p2p.wrox.com/forumdisplay.php?f=90)
-   -   Disable View>Source (disable html source) (http://p2p.wrox.com/showthread.php?t=62880)

kazmughal44 October 13th, 2007 08:38 PM

Disable View>Source (disable html source)
 
Hi

Can you tell me how to disable view > html source

Like www.halifax-online.co.uk

Cheers

Kazz


meow October 13th, 2007 09:12 PM

That site has made no attempts to disable View Source that I can see and kudos to them for that.

I guess you are using IE and are the victim of a common IE bug that makes View Source not work. Empty the cache and restart the browser and everything should, hopefully, work as normal again. :)

A more general answer is that you cannot hide the source. You can try to with JavaScript. That won't stop anyone who really wants to take a peek and most implementations will annoy a lot of people. Don't go there.

--
http://yupapa.com

chroniclemaster1 October 21st, 2007 10:11 PM

Program code someone might want to hide. Data someone might want to hide. HTML?? Let's face it, HTML is REALLY easy. What could you do in HTML that would be so cool you wouldn't want someone to look at it. Plus as meow said, it's virtually impossible to secure it. If your webpage displays in someone's browser, they've got ALL your HTML. There's no viable way to stop someone. Write good clean code, and there's nothing you'd want to hide anyway.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

kazmughal44 October 22nd, 2007 08:39 AM

Cheers guys much appreciated

Sticking with PHP for now:D anyone recommend a good host? hostgator?


chroniclemaster1 October 24th, 2007 01:09 AM

I've heard good things about hostgator, brinkster, godaddy. A lot of them are same ol' same ol' when you read their literature. I recommend talking to them and asking very specific questions about what you want. This tells you two things. First and most obviously, this tells you how good their support is. You want to know how responsive they are (when and if you can get in touch with them) and how knowledgeable they are. The other issue is to make really certain that what you want is available on the packages you're looking at. A friend of mine is a freelance developer and signed a client up with godaddy because they offered ASP.NET on a relatively inexpensive package. They got very sophisticated database functionality working, but couldn't get the relatively simple email up and running. Turns out godaddy didn't permit access to the mail server on their account. He had to go back to the client and tell them that it would cost them another $20 a month to upgrade to a VPS account. The client decided it was worth it, but that's never a pleasant situation to get stuck in. Find out if they permit the specific functions you need, get specific.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

kazmughal44 October 24th, 2007 08:59 AM

Thanks for reply

Decided on hostgator. Price was to cheap. Will be posting a monthly review on webhostingtalk soon will post the link in this thread, so far fantastic service - my site was set up in a matter of minutes literally in my inbox the mail was there!

Peace all wont be posting here for a while unless need coding help :P

PS - .NET ; I prefer PHP all the way - liberal!


amitavroy November 19th, 2007 02:23 PM

well if you desperately want to hide the code of your website then there are online website code encrypted code generators. you can use them and save your code but then i dont know if they will slow down the loading process cause it must be processed from some where.

Regards
Amitav Roy
Email: amitavroy7@gmail.com
Web: http://www.pixelgroups.com

Blog: http://weandgraphic.blogspot.com

chroniclemaster1 November 22nd, 2007 08:35 AM

:DI'm still getting my hands around .NET, but ultimately I'd like to learn both. It's just tough with working at my management position all day, dealing with the kids when I get home, and then trying to spend a little time with my wife after they're in bed. I only get an hour or two to play around with C# at night. I was originally trained in VB, and no one in San Diego has anything for .NET but C# jobs. So that's my current project.

And I guess I just have to throw out one last time how bad an idea I think it would be to mask it. The encrypted code generator is of very limited value. Anyone who can see the output of your webpage in their browser would be able to steal your code. It takes such a limited knowledge of HTML (it's just not that complicated) to write code to mimic what you're doing even if you can't see the underlying code. There is no security measure that will hide HTML adequately, because the browser needs to be able to read it to display your webpage. That's Catch-22. You have to show it, or the browser fails to render your page. There's no way around it, and anything that tells you it provides that kind of security is not really telling the truth.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

kazmughal44 December 10th, 2007 11:28 AM

http://www.i3dthemes.com/webs/EPIC_ISLAM_GOLD_RED/

They managed to do it!

They are using a Javascript to encrypt the HTML to a javascript.

It cannot be hacked as all good decrypters require you have to the decrypted key


richard.york December 11th, 2007 10:43 AM

> They managed to do it!

And I'll bet the whole world is pining to get a look at their sophisticated, high-quality HTML code. I can use a packet sniffer on the client side, get the HTML, the key, the JavaScript... everything! If your browser downloads it, I can get it. And that's just one way I can get it.

> They are using a Javascript to encrypt the HTML to a javascript.

Nothing on the client-side is safe, no matter how sophisticated your obfuscation.

> It cannot be hacked as all good decrypters require you have to the decrypted key

Anything can be hacked.

Happens all the time. DVD's, eBooks, CD's, cable, satellite signals. You show me a DRM scheme, and I'll show you an army of hackers hell bent on breaking it. And not always because they want or need to. Sometimes it's just because they can.



Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design, 2nd Edition
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html


All times are GMT -4. The time now is 09:17 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.