Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Disable 'edit this page'

This is a discussion on "Disable 'edit this page'" within the Website Planning section. This forum, and the thread "Disable 'edit this page' are both part of the Planning Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Jun 22nd, 2007, 19:29
Junior Member
Join Date: Jun 2007
Location: California
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Disable 'edit this page'

Hey folks,


Newbie here. I have pages that I don't want people looking at the code for. Does anyone know how to use possibly Javascripts or an HTML code to block the button on the 'standard buttons' toolbar at the top of internet Explorer? I've been looking all over and experimenting myself but I can't get it to work.

I can't look at the codes of the sites that have this for obvious reasons.

Example:
http://www.ibm.com/us/

There are many examples of this on corporation/major business websites.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old Jun 22nd, 2007, 19:36
JustinStudios's Avatar
Reputable Member
Join Date: Mar 2007
Location: USA
Posts: 404
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

There is no way to block the source code on a website. Some websites do have some of the features disabled in a browser but there is so many ways of getting the code that its not worth the effort. I can still get the code for that link you posted. Best thing to remember is "If you don't want it to be seen, don't put it on the internet". All the advice I can give ya.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Jun 22nd, 2007, 19:39
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

+ 1 on what was said above.

It's waste of time!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Jun 22nd, 2007, 19:46
Most Reputable Member
Join Date: Dec 2006
Location: San Francisco
Age: 58
Posts: 1,567
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Agree with the other two. Besides if it is good coding it can be a great learning tool for someone else.
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Jun 22nd, 2007, 20:12
Junior Member
Join Date: Jun 2007
Location: California
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

The thing is that these pages are incomplete previews of pages that I build for a design business. I don't want clients taking these preview pages and finishing themselves without paying what is due for the complete project.

Another possibility is wrapping these project pages in a blank frame, blocking the code, but I have experienced some problems with that solution.

I have considered drafting contract to work statements but as a new business, I doubt potential customers will look with approval at an advance payment on a project, especially with my almost nonexistent portfolio.

I want to do any little thing that will prevent a client from accessing the code. Any tips on this as well would be appreciated.


Thanks.

Last edited by brockomundo; Jun 23rd, 2007 at 21:21.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Jun 22nd, 2007, 21:48
JustinStudios's Avatar
Reputable Member
Join Date: Mar 2007
Location: USA
Posts: 404
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Use a flat image with watermarks. Never display a temporary work to a client that is not an image and that is in usable condition. Place watermarks on it and make sure that it is unusable (by using code). Also, you should have something that makes sure that your client pays you even if they decide to go with someone else. They pay you the amount and you give them what you have made so far.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Jun 22nd, 2007, 22:38
Most Reputable Member
Join Date: Dec 2006
Location: San Francisco
Age: 58
Posts: 1,567
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Quote:
Also, you should have something that makes sure that your client pays you even if they decide to go with someone else.
That's called a contract to work that you get signed before you even start on the design. Basic business 101....
Last Blog Entry: More Sara Blogging (Nov 29th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Jun 23rd, 2007, 01:46
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Here is a little code for you courtesy of Dynamicdrive.com:
Code: Select all
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
It only works in IE however and is really easy to get around if you know computers at all.
But it might be what you want! Copy and paste this between the <head> tags.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Jun 23rd, 2007, 09:15
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Oh yeah, also you could just embed the website in flash. Most clients are not going to know how, nor be able to learn to decompile the swf. Plus that takes hours to do correctly...lol.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old Jun 23rd, 2007, 16:56
Junior Member
Join Date: Jun 2007
Location: California
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

I like these suggestions. I have considered the Flash solution before but I was scared that the page would lose some of its functionality going from PHP and HTML to SWF. I've discovered that .SWF won't render tables and otherwise HTML in Flash is extremely limited.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old Jun 23rd, 2007, 21:27
JustinStudios's Avatar
Reputable Member
Join Date: Mar 2007
Location: USA
Posts: 404
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Besides that all I have to do is download the .swf and unpack it with my $10 program and I have all the code you typed in. So like I said before "If you don't want it to be stolen, don't put it on the internet". You could spend 2 years developing something that would be secure and I bet you I could find a way around it in 2 minutes. I've never seen source code I couldn't get to.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #12  
Old Jun 23rd, 2007, 21:28
JustinStudios's Avatar
Reputable Member
Join Date: Mar 2007
Location: USA
Posts: 404
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Quote:
Originally Posted by JacobHaug View Post
Oh yeah, also you could just embed the website in flash. Most clients are not going to know how, nor be able to learn to decompile the swf. Plus that takes hours to do correctly...lol.
Sothink's decompiler takes about 30 seconds to fully decompile it and I haven't come across anything that it can't get a great .fla for yet.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #13  
Old Jun 23rd, 2007, 22:38
Junior Member
Join Date: Jun 2007
Location: Savannah
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Write it in a language you made up yourself. It may not display right but how important is that really? I can get any content with a number of site grabbers that are available for free.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #14  
Old Jun 23rd, 2007, 22:40
Junior Member
Join Date: Jun 2007
Location: Savannah
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Quote:
Originally Posted by brockomundo View Post
I like these suggestions. I have considered the Flash solution before but I was scared that the page would lose some of its functionality going from PHP and HTML to SWF. I've discovered that .SWF won't render tables and otherwise HTML in Flash is extremely limited.
Also, search engines cannot index your flash >butt scratch<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #15  
Old Jun 23rd, 2007, 23:21
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Disable 'edit this page'

Oh come on. Yes search engines can index flash. Google started indexing flash over a year ago...lol. As for you hacking the swf their are ways that make it protected...which Sothink cannot decompile it. But you can still decompile it by hand, but as I said that would take at least 2 hours.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!