Thursday, May 25, 2006

View source and the right click killer

Why oh why would you put something on the internet if you don't want people to view it?

So many times I have seen a really nifty piece of work and wanted to know how the author did it. They, however, had different ideas and implement some contrived method of stopping you from right clicking and viewing the source.

To these authors I have one thing to say, not even Microsoft, the notorious closed source initiative stops people viewing the source on their website.

Think about it. The internet is PUBLIC network. Anything posted on a PUBLIC network is open to, yes you guessed it, the public. Implementing these stupid "anti-right click" mechanisms pisses people off just enough to figure out a way round it.

There are a multitude of ways to get round it and I am going to list them:
A) Save the web page and open it in your favourite text editor locally
B) Certain methods implemented in IE will not work in Firefox, so open the site in that browser rather and then right click and view source.
C) If you have office installed you will have the option to edit in Office, this will reveal the code
D) any site "optimised for Microsoft Internet Explorer" open in firefox or some other browser to circumvent any source protection.
E) Alot of people (including myself but for other reasons) reference external javascripts. look for the tag <script language="JavaScript" src="myjavascript.js"> . Copy the src value and past it int the browser after the domain. This will reveal the javascript file
F) Close the site and never, ever go back. You have to ask yourself what that site is doing and why they would want to prevent you from viewing the source? Something malicious maybe? Javascript security flaws are a dim a dozen.
G)Copy the url and paste it into your favourite download manager and download the processed page for editing locally.

Oh and one other thing for you developers using the .inc file extension. Please, please, please for your own safety map the extention to be processed by the script engine you are running (ASP, PHP etc). If you don't these pages can be viewed in plain text and it is amazing the imformation that can be gleaned from them.

Those of you preventing the right click, STOP! You are wasting your time and effort. You could be doing something more productive and remember, what every you have done, someone else has done better.

Have a happy day :)

No comments:

Post a Comment