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.



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

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 22nd, 2007, 18: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.

  #2 (permalink)  
Old Jun 22nd, 2007, 18:36
JustinStudios's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 406
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JustinStudios
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.
  #3 (permalink)  
Old Jun 22nd, 2007, 18:39
karinne's Avatar
SuperMember

SuperMember
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!
  #4 (permalink)  
Old Jun 22nd, 2007, 18:46
sannbe's Avatar
SuperMember

SuperMember
Join Date: Dec 2006
Location: San Francisco
Age: 57
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)
  #5 (permalink)  
Old Jun 22nd, 2007, 19: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 20:21.
  #6 (permalink)  
Old Jun 22nd, 2007, 20:48
JustinStudios's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 406
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JustinStudios
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.
  #7 (permalink)  
Old Jun 22nd, 2007, 21:38
sannbe's Avatar
SuperMember

SuperMember
Join Date: Dec 2006
Location: San Francisco
Age: 57
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)
  #8 (permalink)  
Old Jun 23rd, 2007, 00:46
SuperMember

SuperMember
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.
  #9 (permalink)  
Old Jun 23rd, 2007, 08:15
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
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.
  #10 (permalink)  
Old Jun 23rd, 2007, 15: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.
  #11 (permalink)  
Old Jun 23rd, 2007, 20:27
JustinStudios's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 406
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JustinStudios
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.
  #12 (permalink)  
Old Jun 23rd, 2007, 20:28
JustinStudios's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 406
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JustinStudios
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.
  #13 (permalink)  
Old Jun 23rd, 2007, 21:38
Junior Member
Join Date: Jun 2007
Location: Savannah
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to andrew2u
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.
  #14 (permalink)  
Old Jun 23rd, 2007, 21:40
Junior Member
Join Date: Jun 2007
Location: Savannah
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to andrew2u
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<
  #15 (permalink)  
Old Jun 23rd, 2007, 22:21
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
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.
  #16 (permalink)  
Old Jun 23rd, 2007, 22:22
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Disable 'edit this page'

Oh and as I said, do correctly. If you want my AS and my flash animations, you need to do it by hand not with Sothink, as you won't get my hidden code!
  #17 (permalink)  
Old Jun 23rd, 2007, 22:43
Junior Member
Join Date: Jun 2007
Location: Savannah
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to andrew2u
Re: Disable 'edit this page'

Quote:
Originally Posted by JacobHaug View Post
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.
Oh come on. Yes my point is still valid...lol. Not that I don't appreciate the condescension.
  #18 (permalink)  
Old Jun 23rd, 2007, 22:47
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Disable 'edit this page'

How is your point still valid?
  #19 (permalink)  
Old Jun 23rd, 2007, 23:05
Junior Member
Join Date: Jun 2007
Location: Savannah
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to andrew2u
Re: Disable 'edit this page'

Because I said so..now finish your veggies or no dessert.
  #20 (permalink)  
Old Jun 24th, 2007, 00:36
JustinStudios's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 406
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JustinStudios
Re: Disable 'edit this page'

Umm ignore Andrew2u's posts. Guy doesn't seem to know what he is talking about. As for Sothink not being able to decompile your AS can you teach me your methods? I have yet to come across one that couldn't be decompiled but I have never used it on anything other than customizing templates that only include .swf's . I'd like to learn that and maybe if its not too hard you could post that as a security and Flash tutorial. (If you ever have enough time to write it, haha).
Closed Thread

Tags
edit page disabler

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i let users edit there own page, on my website? AussieRichie Starting Out 3 Feb 29th, 2008 01:31
Right click disable.. tipgal JavaScript Forum 6 Feb 10th, 2008 18:46
disable two inputs smudge618 JavaScript Forum 2 Feb 7th, 2008 15:24
How to retain the disable state of the button after page refreshing srinivasyadav JavaScript Forum 1 Sep 9th, 2007 14:17


All times are GMT. The time now is 08:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43