Author Topic: Can't Upgrade to IE 7  (Read 8942 times)

0 Members and 1 Guest are viewing this topic.


Offline Assarbad

  • AV research & development
  • Malware Experts
  • Sr. Member
  • *****
  • Posts: 368
    • View Profile
    • WinDirStat
Re: Can't Upgrade to IE 7
« Reply #16 on: December 27, 2006, 04:35:59 PM »
Hi again,

this is impossible. Host and subdirectories on a host are quite different entities. However, I can imagine you did not restart your browser after doing the change in the HOSTS file? That could explain it. Because usually the HOSTS file gets read when Winsock is initialized by an application. I'll turn back to you because of the webserver issue ;)

What you do with this trick is, top override the DNS lookups. So instead of asking the DNS server what address lads.myspace.com has (which are 194.105.224.40, 194.105.224.39 currently; use nslookup to verify) the name will automatically resolve to the address you gave in your HOSTS file (i.e. 127.0.0.1 in your case). Therefore requests to a server will be send to 127.0.0.1 instead of one of the above addresses if you try to view a page in your web browser. However, the web browser needs to be restarted and the HOSTS file needs to be properly configured. If in doubt, please compress your HOSTS file and send it to me via PM for an inspection  :grin: :grin:
Oliver (working at FRISK but posting here as a private person!)

Clogged disks on Windows? Check out: WinDirStat

Offline Assarbad

  • AV research & development
  • Malware Experts
  • Sr. Member
  • *****
  • Posts: 368
    • View Profile
    • WinDirStat
Re: Can't Upgrade to IE 7
« Reply #17 on: December 27, 2006, 05:04:38 PM »
I forgot another thing. It could be, that a picture is already in the cache of your web browser. So to get the unobstructed result of your HOSTS file you'll have to empty the cache. My recommendation if you have a slow connection would be to leave the cache untouched and wait until that file gets thrown out of the cache eventually.
Oliver (working at FRISK but posting here as a private person!)

Clogged disks on Windows? Check out: WinDirStat

Offline babyoh

  • Hero Member
  • *****
  • Posts: 1036
    • View Profile
Re: Can't Upgrade to IE 7
« Reply #18 on: December 28, 2006, 03:08:39 AM »
THANKS.
i feel a little foolish - as soon as i emptied my browser caches, and re-booted: PROBLEM SOLVED!

should've figured that one out myself.

* now that i can use HOSTS to block, i've been able to INSTALL IE 7.

it completely blanks out my Norton AdBlock screen, which is strange. but, i won't need norton adblock anymore.

* ONE last thing:
for HOSTS i copied and pasted from here:
http://www.mvps.org/winhelp2002/hosts.txt

1) is it okay to use spaces and carriage returns in the hosts file? (everything else is set up properly)
2) every time i edit HOSTS, i have to tell it to use NOTEPAD. (it's not letting me ALWAYS OPEN WITH, or whatever that option is.)
...any tricks to getting it to always open in NOTEPAD?
i've been tinkering with the file alot, and it'd be a time-saver.

THANKS again!
 :thumbsup:





Offline Assarbad

  • AV research & development
  • Malware Experts
  • Sr. Member
  • *****
  • Posts: 368
    • View Profile
    • WinDirStat
Re: Can't Upgrade to IE 7
« Reply #19 on: December 28, 2006, 03:19:52 AM »
THANKS.
i feel a little foolish - as soon as i emptied my browser caches, and re-booted: PROBLEM SOLVED!
Great ;)

for HOSTS i copied and pasted from here:
http://www.mvps.org/winhelp2002/hosts.txt

1) is it okay to use spaces and carriage returns in the hosts file? (everything else is set up properly)
Empty lines will be ignored, if you mean that. And comment lines work with a # as the first character on a line. Otherwise it is just like any normal text file, just with certain rules for the format of the lines, but CR and spaces (or tabs) can be certainly used.

2) every time i edit HOSTS, i have to tell it to use NOTEPAD. (it's not letting me ALWAYS OPEN WITH, or whatever that option is.)
...any tricks to getting it to always open in NOTEPAD?
i've been tinkering with the file alot, and it'd be a time-saver.
LOL. Maybe use a better Notepad substitute which allows to store favorite file? So instead of browsing to the hosts file and opening it you just launch that substitute and open it from the list of favorite file?
(hint, google for "ConTEXT editor", "Programmers Notepad" or "Notepad2" - all freeware or OpenSource)

Otherwise you can choose "Open With" to select a program (i.e. Notepad) upon right-click. Next time the "Open With" menu item should list Notepad among the choices ;)
Oliver (working at FRISK but posting here as a private person!)

Clogged disks on Windows? Check out: WinDirStat

Offline babyoh

  • Hero Member
  • *****
  • Posts: 1036
    • View Profile
Re: Can't Upgrade to IE 7
« Reply #20 on: December 28, 2006, 11:16:58 AM »
Assarbad,
here's a holiday card, for all the great help you've been to me:
[img width= height=]http://img214.imageshack.us/img214/7951/newyear1al9.jpg[/img]

* unfortunately, eventho i can USE notepad to edit HOSTS, the "always use the selected program to open this kind of file" is grayed out, so i can't choose it.

- is there any problem with me downloading and running NOTEPAD2 (or any of the other text-editors), and running regular NOTEPAD as well?
(i assume these are separate programs, without any conflicts: i may want to try one or more apps, before switching.)

* eventho notepad2 has those extra features (hi-lighting text, etc) --  i just save the file as .txt, and it's preserved without formatting?

OH: FIREFOX has started showing ugly COULD NOT LOCATE images where HOSTS is blocking ads, but OPERA isn't.

(ironically, i had been using FF's ADBLOCK plugin, so HOSTS was more to help me with OPERA and IE. and now i'm getting those funky images in FF. i'll just learn to live with it, i guess.)

i'm using 127.0.0.1 in HOSTS, if you think another one wouldn't cause those images to show...



Offline Assarbad

  • AV research & development
  • Malware Experts
  • Sr. Member
  • *****
  • Posts: 368
    • View Profile
    • WinDirStat
Re: Can't Upgrade to IE 7
« Reply #21 on: December 28, 2006, 11:51:12 AM »
Assarbad,
here's a holiday card, for all the great help you've been to me:
Thanks :wub:

* unfortunately, eventho i can USE notepad to edit HOSTS, the "always use the selected program to open this kind of file" is grayed out, so i can't choose it.
Right, because it lacks the extension - which is the way for Explorer to associate programs with file types.

- is there any problem with me downloading and running NOTEPAD2 (or any of the other text-editors), and running regular NOTEPAD as well?
(i assume these are separate programs, without any conflicts: i may want to try one or more apps, before switching.)
Not that I know of. I personally use ConTEXT and PN. Both have a multi-document interface. Be also sure to not check the option to Replace Notepad for the ConTEXT installer.

* eventho notepad2 has those extra features (hi-lighting text, etc) --  i just save the file as .txt, and it's preserved without formatting?
Yap, this is true for all of these editors. Simple text, no more.

OH: FIREFOX has started showing ugly COULD NOT LOCATE images where HOSTS is blocking ads, but OPERA isn't.
Hehe, this is what I meant. I personally run a local server for that which will return a simple empty HTML page instead. FF can handle that ;)

i'm using 127.0.0.1 in HOSTS, if you think another one wouldn't cause those images to show...
Only if you would run an HTTP server on this other IP and the server would be configured appropriately.

Code: [Select]
#_____________________________________________________________________________
# This virtual host is there to catch any ads on several server in /etc/HOSTS
# HTTP
#-----------------------------------------------------------------------------
<VirtualHost 127.0.0.10:80>
  ServerAdmin root@adcatcher.local
  DocumentRoot "virtualhosts/adcatcher.local"
  ServerName adcatcher.local

  SetEnv nolog
  CustomLog logs/access.adcatcher.local.log combined env=!nolog

  <IfModule mod_rewrite.c>
    RewriteEngine on
#-------------------------
# Redirect everything ...
#-------------------------
    RewriteCond   %{REQUEST_URI} !^/$
    RewriteCond   %{REQUEST_URI} ^.*
    RewriteRule   ^(.+)          / [R,L]
  </IfModule>

  <Directory "virtualhosts/adcatcher.local">
    Options None
    DirectoryIndex error.html
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>
This is the (Apache) configuration that I use. So you can see the server listens at IP 127.0.0.10!
Oliver (working at FRISK but posting here as a private person!)

Clogged disks on Windows? Check out: WinDirStat