Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Site blacklist

02 Nov 2014   #11
oneeyed

Windows 8
 
 

What is your email reader ?

The best solution is to add a blacklist rule in it. Simply clicking on spam while it might work isn't as reliable as adding rules manually. For example you could add a rule to send all mails containing "nirvam" to the trash, whatever the sender's email address is.


My System SpecsSystem Spec
.
02 Nov 2014   #12
looked

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
Several websites suggest disabling the Windows service named DNS Client if you are going to use a HOSTS file.
Could you please explain what is it and how it works?

Quote:
You should also close your browser to make sure that the info that it has cached is cleared. Make sure that the browser has left RAM. This can take a minute or so after the Window has closed. Once you restart your browser, it should read the contents of your HOSTS file.

Restarting the computer (as carwiz mentioned) should clear the DNS cache too - if you opt not to disable the DNS Client service. Let's just hope that you won't be editing/restarting/testing the HOSTS file too often :-)

If you can show us what your HOSTS file entries look like, then maybe we can spot any errors. I'm not sure how you can add/block e-mail addresses to a HOSTS file. More about that later*.
Done it but it didn't work I believe that I failed to edit the hosts file correctly.
By the way, my browser can open the web site but "ping" failed:
C:\Users\blink>ping www dot nirvam dot it (I had to edit the web address because once saved in the form it displayed the site description)

Pinging nirvam.it [89.186.92.211] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 89.186.92.211:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),




Quote   Quote: Originally Posted by jimbo45 View Post
I do not think you can block e-mails via the HOSTS file or via router settings. Those blocks are meant to prevent a computer on your network from getting data from a domain (a website like facebook.com). The e-mails that you are getting are coming to you thru Google's domains/website. If you blocked Google's mail servers, you could not get any e-mails.
It might be best to get a new e-mail address.
I don't think that changing e-mail address will prevent dishonest harvesters from sending me spam.

Quote   Quote: Originally Posted by carwiz View Post
Or get a new mail handler. Windows Live Mail works. It allows blocking. And you can use it to gather all your email accounts to one handler. The trouble with many of the mail account servers is that you will get mail even if your account is close to a "shotgun" broadcast. This is where you might have an account called "JoeBlue" and the broadcast will go to accounts starting with J O E or J O E B L... It's just how mail servers resolve names. Also, the return address in a message may not be where it actually came from.
They found my Gmail account and it doesn't have a block option like Live Mail.

Quote   Quote: Originally Posted by oneeyed View Post
What is your email reader ?

The best solution is to add a blacklist rule in it. Simply clicking on spam while it might work isn't as reliable as adding rules manually. For example you could add a rule to send all mails containing "nirvam" to the trash, whatever the sender's email address is.
I'm using Outlook, unfortunately they send the spam to my Gmail account.
Thanks to everyone for help.


Attached Images
Site blacklist-hosts.jpg 
My System SpecsSystem Spec
02 Nov 2014   #13
oneeyed

Windows 8
 
 

Quote:
They found my Gmail account and it doesn't have a block option like Live Mail.
Google Mail DOES have a blacklist system. It's actually one of the most powerful filter system in webmails available (makes sense since it's mostly a search engine on your mails). It can sort/forward/erase/label based on things like date/year received, sender, etc... And you can even apply it too all the mails already present in your inbox.

Launch your browser and access your gmail account from there.
Click Settings > Filters > Create a New Filter

You can either create a filter on the sender address (it might miss spam if the spammer uses different addresses) :
Type nirvam@nirvam.it in the "From" field

Or you can filter any mail that contains a specific text anywhere in it (title, sender, main message) :
Type nirvam in the "Has the words" field

Click Next Step and check "Delete it"

Click on "Create Filter"


And you're done ! This will put all these mails directly into the trash folder without even being downloaded or checked by your mail reader, all the work is done by gmail.

More info :
https://support.google.com/mail/answer/6579
https://support.google.com/mail/answer/7190?hl=en
My System SpecsSystem Spec
.

02 Nov 2014   #14
UsernameIssues

W7 Pro SP1 64bit
 
 

I'll answer your questions - but this will NOT help your e-mail problems. Also, (as was mentioned before) just because an e-mail says that it is from nirvam.it does not mean that the e-mail was sent from nirvam.it. E-MAIL INFO CAN LIE.


re: the Windows service named DNS Client

As I understand it (and I could be wrong):

When an app like IE wants to visit google.com...
...the app asks the DNS Client service,
"What is the IP address for google.com?"

...the DNS Client service asks the HOSTS file*,
"What is the IP address for google.com?"

If google.com IS listed in that file...
...then the DNS Client service tells IE the IP address
...and IE tries to visit that IP address.
The HOSTS file can be used to pass out false IP addresses...
...thus blocking access to the real IP addresses.



If google.com IS NOT listed in that file...
...then the DNS Client service asks a DNS server
(a set of computers on the internet)
"What is the IP address for google.com?"

Once the DNS server replies...
...the DNS Client service tells IE the IP address
...and IE tries to visit that IP address.



The next time the IE wants to know the IP address for google.com...
...IE asks the DNS Client service,
"What is the IP address for google.com?"

...the DNS Client service tells IE the IP address
(using info that it had saved/cached from the last DNS lookup)
...and IE tries to visit that IP address.

So, if you changed the HOSTS file after the DNS Client service had read it, then IE would not be told about the new info in the HOST file because the DNS Client service answered IE's query using cached/saved DNS info.


*not exactly true in all cases, but it will do for this overview.

If you disable the DNS Client service, then IE make it's queries first to the HOSTS file and then to the DNS servers on the internet. IE (and other apps) can also cache/save/remember some DNS info. That is why it is best to exit IE while changing the HOSTS file.


Not that you asked - but here is some info on disabling the DNS Client service:
Site blacklist-dns1.png

Site blacklist-dns2.png

Site blacklist-dns3.png

Change the screen shown above to look like the screen shown below.

Site blacklist-dns4.png

"OK" your way out and restart the computer.

Also attached to this post is a HOSTS file that has the website of interest blocked. There is a reason why I listed the website two ways. Let us know if you cannot figure out how to get that file uncompressed and where it needs to be.


PINGING:
Some websites do not respond to pings.


I'll let others help you with filtering out the SPAM.


Attached Files
File Type: zip HOSTS.zip (572 Bytes, 3 views)
My System SpecsSystem Spec
03 Nov 2014   #15
looked

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by oneeyed View Post
Google Mail DOES have a blacklist system. It's actually one of the most powerful filter system in webmails available (makes sense since it's mostly a search engine on your mails). It can sort/forward/erase/label based on things like date/year received, sender, etc... And you can even apply it too all the mails already present in your inbox.

Launch your browser and access your gmail account from there.
Click Settings > Filters > Create a New Filter

You can either create a filter on the sender address (it might miss spam if the spammer uses different addresses) :
Type nirvam@nirvam.it in the "From" field

Or you can filter any mail that contains a specific text anywhere in it (title, sender, main message) :
Type nirvam in the "Has the words" field

Click Next Step and check "Delete it"

Click on "Create Filter"


And you're done ! This will put all these mails directly into the trash folder without even being downloaded or checked by your mail reader, all the work is done by gmail.

More info :
https://support.google.com/mail/answer/6579
https://support.google.com/mail/answer/7190?hl=en
Thanks very much oneeyed, I new about Gmail filter option and I knew you would say that Gmail indeed has it.
The problem is that in the past I messed with it because some spamming contained my e-mail name plus my full name so that it looked like I was the spammer.
After I applied the filter I was no more able to receive ANY e-mails from anyone so my account was rejecting everything.
Anyways, I applied the filter you suggested and thanks for help.
My System SpecsSystem Spec
04 Nov 2014   #16
looked

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
re: the Windows service named DNS Client

If you disable the DNS Client service, then IE make it's queries first to the HOSTS file and then to the DNS servers on the internet. IE (and other apps) can also cache/save/remember some DNS info. That is why it is best to exit IE while changing the HOSTS file.

Also attached to this post is a HOSTS file that has the website of interest blocked. There is a reason why I listed the website two ways. Let us know if you cannot figure out how to get that file uncompressed and where it needs to be.
Thanks very much for deep explanation although I'm still not 100% clear.
So if I disable the dns service, how will my common browsing activity behave?
Also thanks very much for the hosts file, finally my browser cannot access to that web site anymore ""server not found".
My System SpecsSystem Spec
04 Nov 2014   #17
UsernameIssues

W7 Pro SP1 64bit
 
 

Sorry that I was not clear.
I can be that way at times :-(
It is a complicated topic.


If you disable the Windows service named DNS Client...
...you will probably never notice the difference.
(Try it and see. It won't hurt anything.)


If you decide to leave it running...
...you will probably never notice the difference.
...(because you have a tiny HOSTS file)
...(which you probably won't update/edit/change each day).


If you ever decide to use a bigger host file (about a million entries) [Google HostsMan], then it is best to have the DNS Client service turned off so that you can edit/update the HOSTS file without restarting the computer or manually flushing and reloading the DNS cache.

I delete my HOSTS file (via a script) when I want to visit what it blocks. All I have to do is open a new* browser to get to the website of interest. If I had the DNS Client service running, then I would have to do several more things to visit that website or restart the computer. Once I'm thru with the website, my script updates and replaces my HOSTS file.


The DNS Client service is needed in some corporate environments, but those people should be getting help from their IT staff. Not from these forums.



*new - as in a different browser than the one that told me the site was not available. e.g. If IE cannot get there - then I delete the HOSTS file - start Chrome or Pale Moon as my new browser and visit the website. That way, I can keep my many tabs open within IE. If I run out of browsers or I think that the website is dangerous, I use a browser inside a Virtual Machine.


edit: hmmm, if you Google HostsMan, you might see forum threads arguing against using HOSTS files this way. I'll not debate that here, but feel free to PM me.
My System SpecsSystem Spec
05 Nov 2014   #18
looked

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
Sorry that I was not clear.
I can be that way at times :-(
It is a complicated topic.

If you disable the Windows service named DNS Client...
...you will probably never notice the difference.
(Try it and see. It won't hurt anything.)

If you decide to leave it running...
...you will probably never notice the difference.
...(because you have a tiny HOSTS file)
...(which you probably won't update/edit/change each day).

If you ever decide to use a bigger host file (about a million entries) [Google HostsMan], then it is best to have the DNS Client service turned off so that you can edit/update the HOSTS file without restarting the computer or manually flushing and reloading the DNS cache.

I delete my HOSTS file (via a script) when I want to visit what it blocks. All I have to do is open a new* browser to get to the website of interest. If I had the DNS Client service running, then I would have to do several more things to visit that website or restart the computer. Once I'm thru with the website, my script updates and replaces my HOSTS file.

The DNS Client service is needed in some corporate environments, but those people should be getting help from their IT staff. Not from these forums.


*new - as in a different browser than the one that told me the site was not available. e.g. If IE cannot get there - then I delete the HOSTS file - start Chrome or Pale Moon as my new browser and visit the website. That way, I can keep my many tabs open within IE. If I run out of browsers or I think that the website is dangerous, I use a browser inside a Virtual Machine.

edit: hmmm, if you Google HostsMan, you might see forum threads arguing against using HOSTS files this way. I'll not debate that here, but feel free to PM me.
Thanks that is a very interesting reading.
I sometimes do add or delete entries in the hosts file like for example when I had to block the nasty and stubborn Skype update service which still runs even if in its settings I chose NOT.
I turned off the dns service and sometimes I'll need to update the hosts file, so is this a good setup for me?
I would love to search and read more about your suggestions but unfortunately I need to keep dealing with my studying and lifestyle.
My System SpecsSystem Spec
05 Nov 2014   #19
UsernameIssues

W7 Pro SP1 64bit
 
 

You will do just fine with the DNS Client service disabled :-)

Some apps try to connect to things on the internet and when they fail, they try to connect to an IP address. Knowing one or more the IP addresses will cause the app to not use the HOSTS file (or the DNS Client server). That app will probably connect. The Windows firewall can be used to block connections to for a specific app. If you do not want the app to connect to anything, block it from everything.

If you want to stop the Skype update service from running, create a fresh topic (when you have the time).

If you need help with firewall settings, create a fresh topic (when you have the time).

Since you own a computer that uses the Windows OS, you are not allowed to have a life :-)
My System SpecsSystem Spec
05 Nov 2014   #20
carwiz

Windows 7 Pro-x64
 
 

Your Hosts file isn't formatted correctly. You need to specify the local host IP address for each entry. Don't use the HTTP or "www." and don't put any spaces within the host name like you have in " .it".

Here's an example:

127.0.0.1 localhost
127.0.0.1 nirvam.it
127.0.0.1 boobysocks.com
My System SpecsSystem Spec
Reply

 Site blacklist




Thread Tools




Similar help and support threads
Thread Forum
Hyperlink syntax to open a parent site and then child site
I may not have this under the correct section and please keep in mind that I am not a programmer but here goes. I am trying to add a hyperlink in Outlook 2007 signature file that will open a child site, but the child site seems to need some personalized information in the cache that comes from...
Browsers & Mail
How to blacklist an app from the programs list
How to blacklist an application from showing up on the programs list (the lists of app that you usually open, just above the windows logo when you first click onto it..) Thanks
General Discussion
standalone blacklist/restricted sites importer
for xp and 2000 biss made a nice program that managed the hosts file. i need such a manager and can't find one for windows 7. i know spybot has a hosts feature, and so i installed it and integrated their file, but I like to use several files {(steve martins, hpguru, and msmvps, as well as...
Software
THANK YOU to All on this Site - Your the Best!
Hello Gregrocker and all you other beautiful people who have helped me these last two days - you are absolutely fantastic with your patience and advice and i send you all lots of cyber kisses!!! ;););) I am jumping up and down - my laptop has now a clean install of Win7 freeing up 60GB from the...
General Discussion
Construction Blacklist Database Administrator Fined
ARRESTS, INDICTMENTS & SENTENCES (July 16, 2009) The man who maintained a blacklist database of builders in Britain has been fined GBP 5,000 (US $8,219) by the Crown Court. Ian Kerr kept information on more than 3,200 workers in the building industry; the workers were not aware of the...
Chillout Room
ACMA blacklist
It seems 1172 URLs are blacklisted by the Australian Government already, Whirlpool`s ISP was threatened with $11,000 a day in fines yesterday after a user on Whirlpool`s forum posted one of the links :sarc: ACMA takes aim at Whirlpool, supplier | Australian IT Link removed Hmm, the...
Chillout Room


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:37.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App