Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Stop page edit . . .

  1. #1
    Join Date
    Apr 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Stop page edit . . .

    HI,
    how can i make my page so that other visitors cannot click the EDIT button above and edit the pages code. i knoe they cannot save and change the file but i would rather not have it up there.
    Code:
    <!doctype html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html>
    this is what i currently have at the top of my page code.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The code you posted simply starts the document, establishing the document type, meaning which type of html you are using on the page. In this case, that is xhtml. (On a side note-- xhtml is pretty much worthless because Internet Explorer, for some stupid reason, doesn't recognize xhtml. Until it does, considering at least 50&#37; of web viewers are on IE, xhtml is more trouble than it's worth, whether or not it's better, in theory.)

    The edit button, I assume, is the one that, by default, opens in Microsoft Word, from Internet Explorer.

    There is no way to change things in the browser like that.

    Secondly, people can save and change your code, but just on their computer, not on your server. Your website will not change, but they can take your source code and modify/save it if they would like.

    This is just how many things work on the internet. It's a very open means of transmitting data. Pictures, source code and other data are very easy to steal, and there is really no way of stopping it. Of course copyright law protects you if it becomes a major issue, but there is no way to code your page so that they can't view the source code. It's simply how the web works-- user requests page; server sends page; browser renders page. So, if you don't send the code, they can't see anything, and if you do send it, they can view/save it.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can't.
    this is what i currently have at the top of my page code.
    You're dropping support for IE?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Clearly IE is being used, since we're talking about the edit button.
    As I said, xhtml is probably not the best option.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Apr 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What!!!!
    you have over compleicated things i think.
    as in EDIT button i meant the button at the top which has either frontpage, notepad of whatever your web page editor is.
    XHTML is fine, i have no problems with it on internet explorer or firefox etc.
    I put that code up because i dont know what to edit!! thats why i posted on here.
    You can save the changes to the server if you press the button above ^^ and save. if you have the password and username. i would rather make my pages more sdafe.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    XHTML is fine, i have no problems with it on internet explorer or firefox etc.
    Then you're not using XHTML. You're probably serving it as text/html, in which case it is invalid HTML, not XHTML.
    as in EDIT button i meant the button at the top which has either frontpage, notepad of whatever your web page editor is.
    That's only an IE thing as far as I know.
    You can save the changes to the server if you press the button above ^^ and save. if you have the password and username. i would rather make my pages more sdafe.
    You can't. Well, you could perhaps use knockd or something, but generally speaking, you can't.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Apr 2007
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can lol. Ive done it before so i know its possibble.
    I only said XHTML becuase you said it was . . . . it is css with HTML.
    It probabbly is only in internet explorer but the mahority of people use internet explorer

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    1. XHTML:
    Yes, the majority of people use internet explorer. XHTML is not supported by internet explorer.
    It will try to GUESS what you mean by the INVALID html (xhtml), but it will not be actually using xhtml. It will instead be using html that happens to have extra, potentially disruptive commands.

    2. Saving to the server:
    First, that button opens the file for editing in the default editor. When you click save, it saves the file locally, from a temporary location from which it was stored in the first place.
    Second, yes, if they have your username and password, they can save to your site (though I'm not aware of a direct option from the edit button). Removing this edit button (impossible anyway) would not make anything more secure. If they can do that, they could just log onto your ftp.
    As a test, give me your username and password and I promise not to use the edit button and I can delete your whole site in 2 minutes. (I'm joking, but... it is very possible.)

    3. The code you placed above is just the first two lines of your page. There is nothing to edit because this is impossible, and since you're doing an overall setting for the page (theoretically), it wouldn't depend much on the rest of your page at all.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #9
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    I use IE. Version 7. With Windows Vista. Haven't had a problem (except general crashes).
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

  10. #10
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    You can lol. Ive done it before so i know its possibble.
    I only said XHTML becuase you said it was . . . . it is css with HTML.
    It probabbly is only in internet explorer but the mahority of people use internet explorer
    You want to boot off approximately 40&#37; of all your uses?
    If you can, SHOW US.

    Haven't had a problem (except general crashes).
    Isn't that a problem?
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •