473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

detect change of remote page

hi everyone,

i have some links on my site, i need to be absolutely sure that the
html has not been modified, even one character. i would rather not
rely on http headers, just the html (so it is not dependant on the
webserver). should i make a database to actually mirror the page, and
then check against my copy? any better ideas? :)

thanks
Jul 17 '05 #1
5 2234
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I noticed that Message-ID:
<aa**************************@posting.google.com > from will taubin
contained the following:
i have some links on my site, i need to be absolutely sure that the
html has not been modified, even one character. i would rather not
rely on http headers, just the html (so it is not dependant on the
webserver). should i make a database to actually mirror the page,
and then check against my copy? any better ideas? :)


Don't know how you would do it, but a hash of the page may be
sufficient? A bit like PGP sig?

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBP71VCmUsPVsZRo4gEQK+cwCfUoGD8tF8SKmidE1E6mjRtO 0cJJ4An2Vd
x0Gv5k/DriaFBcxM7563FePJ
=2nYp
-----END PGP SIGNATURE-----

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2
will taubin:
hi everyone,

i have some links on my site, i need to be absolutely sure that the
html has not been modified, even one character. i would rather not
rely on http headers, just the html (so it is not dependant on the
webserver). should i make a database to actually mirror the page, and
then check against my copy? any better ideas? :)


Checksum the file, and store the checksum locally. Then you can verify the
file against this checksum when you access it. md5() is ok for this
purpose.

André Nęss
Jul 17 '05 #3
André Nęss <an*********************@ifi.uio.no> wrote in message news:<bp**********@maud.ifi.uio.no>...
will taubin:
hi everyone,

i have some links on my site, i need to be absolutely sure that the
html has not been modified, even one character. i would rather not
rely on http headers, just the html (so it is not dependant on the
webserver). should i make a database to actually mirror the page, and
then check against my copy? any better ideas? :)


Checksum the file, and store the checksum locally. Then you can verify the
file against this checksum when you access it. md5() is ok for this
purpose.

André Nęss


thanks, but if i generate a checksum, then later download the file
again to compare the checksums, will the timestamps affect the new
checksum? or is it generated only based on the content of the file?
Jul 17 '05 #4
> Checksum the file, and store the checksum locally. Then you can verify the
file against this checksum when you access it. md5() is ok for this
purpose.

If you are using Windows, the Advanced CheckSum Verifier from
http://www.irnis.net is just for you :)
Jul 17 '05 #5
will taubin:
André Nęss <an*********************@ifi.uio.no> wrote in message
news:<bp**********@maud.ifi.uio.no>...
will taubin:
> hi everyone,
>
> i have some links on my site, i need to be absolutely sure that the
> html has not been modified, even one character. i would rather not
> rely on http headers, just the html (so it is not dependant on the
> webserver). should i make a database to actually mirror the page, and
> then check against my copy? any better ideas? :)


Checksum the file, and store the checksum locally. Then you can verify
the file against this checksum when you access it. md5() is ok for this
purpose.

André Nęss


thanks, but if i generate a checksum, then later download the file
again to compare the checksums, will the timestamps affect the new
checksum? or is it generated only based on the content of the file?


It's generated based on whatever you input, so as long as you only input the
contents, and this doesn't change, you're ok.

André Nęss
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Graham | last post by:
Can anyone tell me how to detect when a client socket connection has failed (ie remote equipment power failure) using VB.net. Thanks in advance
23
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I...
5
by: Morten | last post by:
How do I detect if a client socket is no longer connected to the listen tcp socket ? I have tried with (just an example): --------------------- Socket tcpSocket; ...
1
by: Ludovic Lemarinel | last post by:
Hi, I've got a Tab Control, with a lot of tabs, and a lot of controls in each tab (textboxes, comboboxes, listviews, checkboces, etc...). As these controls are updating a Database, I need to...
9
by: Tim | last post by:
Hi Guys, I was wondering if there is a way to detect from with a C# app if it is being started in a remote session? i.e. someone has connected via remote desktop or terminal services... ...
4
by: Chris Johnson | last post by:
Hey all, I have a small app I have developed that periodically pings a list of server and returns their status. Given my environment I have setup the program such that a server can be down 4...
4
by: sid | last post by:
Can someone tell me how to detect "Action Cancelled" page with out polling. I have a frame set and I want to make sure the other frame is displaying what it is supposed to without polling. For...
4
by: nrocha | last post by:
Hello, I've been trying to detect when a user closes a page or navigates away from it. This is part of a solution for locking pages (that is, if a user enters a page, no one else can enter it...
3
by: =?GB2312?B?zPC5zw==?= | last post by:
Howdy, all, I want to use python to detect the accessibility of website. Currently, I use urllib to obtain the remote webpage, and see whether it fails. But the problem is that the webpage may be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.