Author Topic: Remember where you found the html?  (Read 1511 times)

Jor

  • Sr. Member
  • ****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Remember where you found the html?
« on: April 17, 2002, 12:39:36 PM »
If you ever safe a webpage's source to your harddrive, it can be quite difficult to remember where exactly you found it, or links can be broken because they didn't use complete URLs.

This filter helps in curing that:
[Patterns]
Name = "Saved from URL"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 8
Match = "<start>"
Replace = "<!-- saved from URL: u -->
"


If you download a page with this filter active, you will have now the complete originating URL in the source.

If you find the links or images do not work anymore, you can now manually add (or edit) the following tag somewhere in the <head> section of that page:
<base href="URL" />
Replace URL with the URL you'll find in the <!-- saved from URL: (url) --> bit, and all links will work again.

Edited by - Jor on 18 Jun 2002  15:43:17
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
Remember where you found the html?
« Reply #1 on: April 17, 2002, 04:53:01 PM »
That's a nice one

 
 

JD5000

  • Full Member
  • ***
  • Posts: 241
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://home.satx.rr.com/jd5000/
    • Email
Remember where you found the html?
« Reply #2 on: April 17, 2002, 07:44:45 PM »
Yes it is. One that migrated from your config to mine.

--------

"Imagination is more important than knowledge" - Einstein

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Remember where you found the html?
« Reply #3 on: April 18, 2002, 05:14:58 AM »
I'm using it too. It's handy for browsers like Opera or Netscape but it isn't really needed for IE. IE allows you to save files as HTML archives (*.mht). This saves everything including images to a single file so that when they are opened you see the page exactly as it was when you visted the page. The original url of the page is encoded along with it on the "Content-Location" line.

BTW these mht files are every bit as dangerous as hta files but they should be safe enough after having been filtered by Prox.

 
Facing each other,
a thousand miles apart.

xartica

  • Newbie
  • *
  • Posts: 38
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Remember where you found the html?
« Reply #4 on: April 19, 2002, 02:22:43 PM »
I use IE primarily, and Jor's filter is ESPECIALLY useful for viewing
cached (TempInternetFiles folder) pages.

Similarly, I use the following webfilter to tag external javacsript files:

Name = "external javascript files: insert header showing the source URL"
Active = TRUE
URL = "*.js(^?)"
Match = "*1"
Replace = "//source:       u

1"
        "$STOP()"

# note: <start> did not work with js files when I tried it
#
# also: some files not being touched ~~
# May need to add  |$Type(js)   to the end of the URL matchline