HTML:Why my change is saved in some places and not elsewhere

  • Context: HTML/CSS 
  • Thread starter Thread starter mooncrater
  • Start date Start date
  • Tags Tags
    Change
Click For Summary

Discussion Overview

The discussion revolves around the behavior of web browsers in relation to modifying HTML source code on web pages, specifically addressing why changes made to certain sites persist while others do not. It explores concepts of caching, server-side code, and permissions related to web content.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant describes an experience changing the source code of a web page and questions why changes persist on some sites but not others.
  • Another participant explains that browsers cache HTML code, allowing changes to persist in the cached copy until the cache is cleared.
  • A participant confirms that changes are made to a cached copy and not to the actual site hosted on the server.
  • Discussion includes the idea that server-side changes require proper credentials, which are not accessible without permission.
  • Participants acknowledge that unauthorized access to change server-side code is illegal and against forum policy.

Areas of Agreement / Disagreement

Participants generally agree on the distinction between client-side changes (in the browser) and server-side changes (on the actual website). There is no disagreement on the legality of unauthorized access to web content.

Contextual Notes

Limitations include assumptions about browser behavior, caching mechanisms, and the legal implications of accessing web content without permission.

Who May Find This Useful

Individuals interested in web development, browser functionality, and the legal aspects of web content modification may find this discussion relevant.

mooncrater
Messages
215
Reaction score
18
Last week I tried to change the source code of google's new tab page and facebook's homepage. As we know that we can't change the actual page ...It will be the same as soon as I press the refresh button. And that was okay to me.
But, recently I visited this site "www.hackthissite.org" , where they have some exercises on computing , hacking and stuff. There was this exercise where the source code had an e-mail address , and we had to change it to ours'.And then the e-mail would be sent to the e-mail address we gave. And yeah it worked too! But how?
As much as I know, the browser should "forget" the changes I made to the source code , but it didn't.
So, what is behind this?
I am confused over this think,any help appreciated. :)
 
Technology news on Phys.org
Browsers usually download a copy of a page's HTML code and cache (store) it somewhere on your computer, so that if you return to the page soon, it can simply read that copy, which is faster than downloading the page again. So if you change the cached copy of the page, it will remain available to your browser.

Your browser should have an option somewhere to "clear the cache". That will make it "forget" any changes you made.
 
  • Like
Likes   Reactions: mooncrater
So actually I am changing a cached copy. Nothing is being changed on "their" side of the site. Isn't it?
 
You can change the code on the server that hosts the site only if you have the site owner's login credentials: username and password, or SSH private key, or whatever.
 
  • Like
Likes   Reactions: mooncrater
So I can't change anything of a site which I don't own unless I have permission to do that?
 
Exactly. Unless you steal or bypass the site owner's login credentials, which we don't support discussing here, by forum policy. It's against the law, at least in the US.
 
  • Like
Likes   Reactions: mooncrater
Yeah,thats just the last thing I would do( or won't do at all..;)). It's just like stealing someone's car, so it should be illegal.
Thanks for your help.
 
  • Like
Likes   Reactions: Silicon Waffle

Similar threads

Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 2 ·
Replies
2
Views
603
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K