Jump to content


About View Source Code

  • Please log in to reply
4 replies to this topic

#1 insane23

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 17 August 2006 - 10:39 AM

How to disabled the View Souce in Menu bar??


#2 ToonMariner

  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 17 August 2006 - 11:47 AM

pointless exercise. You can disable the menu altogether when opening a pop-up with js BUT one of the browsers I use (avant) keeps thes menus availoabel at all times.

The only option you have is something driven by javascript and people can turn that off - so I woudl not bother trying.

Some busineses that did not want the html stealing designed entire sites in flash.....
follow me on twitter @PHPsycho

#3 obsidian

  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 17 August 2006 - 12:35 PM

you can do a number of things to deter would-be pirates from taking your images or source, but there is no fix at all that is 100% reliable. in every browser i've used, there is a way around all the fixes, but there are some things you can do to throw someone off for a little bit. one thing i learned from amazon is an extremely easy thing, but it really threw me for a loop the first time i saw it. i hit "view source" on one of their pages, and it came up with a blank page... when i looked closer, i realized they simply placed about 300 blank lines at the top of their source code, but it really made me stop and wonder when i saw nothing on the source page.

other than little tricks like that, though, you're only going to slow down the people that aren't too adamant about getting to your stuff. if it's on web, it can be accessed by a sufficiently determined individual.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#4 Daniel0

  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 19 August 2006 - 09:51 AM

You could also use something like
wget http://example.com/whatever_file.html
to download the HTML source code to view it. And if you use Firefox (I don't know if it works in other browsers), you could type something like view-source:http://www.phpfreaks.com in your address bar to view the source.

#5 AndyB

  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 19 August 2006 - 10:54 AM

I recommend http://continue.to/hope
Legend has it that reading the manual never killed anyone.
My site

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users