Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 418
  • Last Modified:

Trouble Blocking Site In IE

Hi,

For a while now I've been trying to figure out how to block Fastclick.net popups.

I've added Fastclick.net to my Restricted Sites zone in IE6, using:  *.fastclick.net

However, these popups still find their way on my screen.

All settings within my Restricted Sites zone have been disabled, including active scripting.


Below is the code used to launch these annoying popups:

<script language="javascript"><!--
var dc=document; var date_ob=new Date();
dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
if(dc.cookie.indexOf('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){
dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
dc.write('/w/pop.cgi?sid=xxxx&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
date_ob.setTime(date_ob.getTime()+43200000);
dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // -->
</script>



Any ideas on how to block these popups without adding an entry to the HOSTS file or using popup blocking software?

Thanks.
0
Webby_z
Asked:
Webby_z
  • 6
  • 4
  • 3
  • +2
4 Solutions
 
r-kCommented:
Try adding the site to the Restricted Zone by its full address, i.e. http://media.fastclick.net
0
 
gidds99Commented:
You could also block this via your Hosts file (%windir%\system32/drivers/etc/hosts). (open it with notepad).  Then add an entry:

127.0.0.1 media.fastclick.net

then save the file and close.

This will prevent any connection to the site.

Hope this helps.
0
 
maninblac1Commented:
It's still a little buggy, but it's fixed alot of problems with popup's etc.  Try IE7 beta from microsoft, they've fixed some things like, popups on window close, or URL redirect on window close.  So the close window command overrides all other commands.  Any many other security and annoyance issues with IE6, the program is not complete however and is devoid of certain functionality like FTP.  IE7 currently uses a UNIX style FTP access and you must use explorer to access ftp's normally.  However i strongly suggest trying it out, if you're an avid IE user.

Spybot also adds many websites and domains to the IE environment as routine block with their IE plugin available through the main program.  By default it blocks the fastclick web address (and many many others) and silently closes the window if they appear (almost unnoticable).

The only other thing could be that something outside your knowledge is altering a setting that is allowing the popups.  Spyware/malware and virus scans are always a plus.
0
Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

 
GeneralMandibleCommented:
I used my router (just a basic Netgear) to block a lot of the common popup & tracking cookie sites.  If you're behind one, try that if it supports it.  It works at blocking lots of the ads within web pages also.
0
 
Webby_zAuthor Commented:
Sorry it took me so long to respond. I increased the points.

Lately I've been experimenting a lot with this.

For some reason, adding an entry to my HOSTS file doesn't seem to do anything. Nor does adding an entry to the Restricted Sites zone in IE.

By the way, this computer is running 98SE.

Also, isn't IE supposed to block active scripting from a restricted domain that's loaded into another domain?

For example, if somedomain.com is added to the Restricted Sites zone, and I visit a page on a completely different domain that loads an external .js file from "somedomain.com/scripts/ad.js"?

Thanks again.
0
 
maninblac1Commented:
No, that feature is only available in IE7, it's a special protection to prevent phishing and other things.  But it was added to IE7 and has not been implemented in IE6.
0
 
gidds99Commented:
For the HOSTS solution to work you will have to reboot first (as DNS queries are cached). If this solution is not working for you then you may be using an incorrect syntax.

If your HOSTS file continues to have no effect, post the contents of the file here so we can confirm the sytax is correct.

(We would not expect to see the HOSTS entry to show in the IE restricted sites - this is expected)  
0
 
Webby_zAuthor Commented:
This is the syntax that I'm using for the HOSTS file:

127.0.0.1 media.fastclick.net

I even tried:

0.0.0.0 media.fastclick.net

I know it's not working like it should, because the popups still appear and images from this domain are viewable.

I've restarted several times, and I've verified that the HOSTS file is a .sam file and not a .txt as well.

Any ideas?

Thanks!
0
 
r-kCommented:
"I've verified that the HOSTS file is a .sam file and not a .txt as well"

Something odd there. The HOSTS file should not have _any_ extension.
In Win Explorer or My computer it should just say "file", not "sam file".
0
 
Webby_zAuthor Commented:
Well, the file doesn't have an extension when viewed in explorer, but when I view the file properties it says that the file type is SAM. It also says that the ms-dos name is HOSTS.SAM.

Any ideas what's going on?

Thanks again!
0
 
Webby_zAuthor Commented:
Ah, now I understand what's going on here.

That file is just a sample file, which explains why my entry wasn't working.

However, it was the only HOSTS file located in the windows directory.
0
 
gidds99Commented:
The HOSTS.sam  file is the sample file included with windows.  The file is intended as a guide to the syntax of a Hosts file.  If you have modified this file rather than the actual HOSTS file then this would explain why your changes are not in effect as Windows does not reference this file.

You should modify your HOSTS file (with no file extension - as r-k has mentioned above).

Hope this helps.
0
 
gidds99Commented:
Webby_z - we must have posted at the same time.

You should now have more success.
0
 
Webby_zAuthor Commented:
Ha, great minds think alike. ;)

Thank you all for your help!

I've increased the points once more so that I may split the points.
0
 
r-kCommented:
Thanks. I hope this means the fix is working.
0
 
Webby_zAuthor Commented:
Yes, the fix is now working. Thanks again! :)
0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

  • 6
  • 4
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now