An unofficial blog that watches Google's attempts to move your operating system online since 2005. Not affiliated with Google.

Send your tips to

August 16, 2006

Create an Email Blacklist in Gmail

If you constantly receive messages you'd like to ignore from the same persons or Gmail's spam filters aren't too good for you, it's time to create a blacklist. How to do that in Gmail?

1. Go to Contacts, click on Groups and create a new group (let's say "Blacklist").

2. Click on "All contacts", check the email addresses you don't like and add them to the group (at the bottom of the window).

Each time you send a message to someone not in your Contacts list, Gmail will automatically add the person for you. So if you didn't reply to a person, you'll have to add the mail address in the last step.

3. Go to Groups / Blacklist and click "Compose to group". Copy the text from the "to" field.

4. Paste it here and click "convert". Then click on the resulting text and copy it. (This is a simple JavaScript. No address will be sent to a server.)

5. Create a new filter. Paste the text obtained above in the "from" field, check "Also apply to..." and "Delete it".

If you want to add more addresses, edit the filter by appending " OR newaddress1 OR newaddress2 ... OR newaddressN" in the From field.

Note that if you only want one or two address, you can create just the filter described above, by adding the address in the From field. If you want to block many addresses, it's time consuming to do this manually by copying each email address from the contact list.

When will you run out of Gmail storage space?
Hide spam counter in Gmail
More interesting Gmail filters


  1. nice.. I must try this hack out !!

  2. see, if you could filter against contact groups, you wouldn't need to do all this.

  3. Not a bad idea. I actually did the inverse; I created a whitelist of all my contacts and created a filter rule that basically selects all messages that have an attachment and are not from my whitelist contacts. This should catch most of the image spam I get, which has nonsense in the e-mail body and the advertisement in attached GIFs.

  4. Thanks for the trick, but i like to filter on parts of the body like "Dear Home Owner" and so on.
    I do not understand, why it isn´t possible, because google is scanning the body already for displaying the ads...

  5. I like this idea, but it means you have to be constantly updating your whitelist or blacklist using the contacts. It would be much simpler if gmail would allow you to reference the contacts from the filters so you would automatically have an up-to-date whitelist.

  6. I just wish GMail would delete the mail filtered and not just dump it in the trash for later manual deletion.....especially if I've gone through the trouble to create a filter specifically to delete something

    And while I'm ranting why can't they make REAL FOLDERS instead of this filter/label non-sense......Yahoo's new mail feature is actually pretty nice despite the annoying ads...I think I'm dumping GMail until they can figure this stuff out as these are two of my favorite features in almost every single e-mail client on the planet.

  7. I have a much simpler solution.

    Create a filter.
    In has words:
    type (without quotes): "is:spam"
    You should have a dialogue box that advises against it, click ok, it works, than tell it to delete it.

  8. Yes, I've already written about that, but that's useful only to send all the spam to trash. If you don't want to get an email from someone, you could mark it as spam, but maybe it's not a good idea because you could mislead Gmail's filters.

  9. this is retarded the direstions don't work!!!!!!!!!!!!!!!!!!11

  10. why is this so hard or it is not imposible, am i so stupid or what

  11. There is a Gmail-Feedback form

    There are feature requests.

    check "Ability to block a user from sending mail to your account"

    send info to google.

    if a lot of users do this, they will inegrate it!!!

  12. just tried this.

    great workaround until gmail finally has its own blacklist feature.

    there was a bit of a difference on the adding a filter part mainly due to interface changes in gmail but i've been able to figure it out.

  13. Wouldn't it be better if Google just gave you a button to block the DOMAIN of an email sender?

    If gmail is supposed to be so great, why do I have to basically do a rain-dance just to do what I want done???????

  14. I agree. I have a hotmail account that let's me block a sender, or a sender's domain.

    It's the most beautiful thing I've ever seen.

    Now there are HUNDREDS of email addresses AND domains from which I will never receive any communication EVER again. I don't have to set up some ridiculous "Filter" and I don't have to do a "rain-dance" to block people.

    I was very hesitant about switching to gmail...and, to be real honest, the inability to simply block a sender or a sender's domain is just killing it for me.

    I'm afraid I must whole-heartedly agree:

    "If gmail is supposed to be so great, why do I have to basically do a rain-dance just to do what I want done???????"

  15. OK, so what's the big difference between adding a list of addresses in Hotmail's blocked senders and creating a Gmail filter that automatically deletes any message sent from the same addresses? In Gmail, you'll find the messages in the Trash. I don't think this is a big problem.

    You can enter domains in Gmail's filters, not only email addresses, so the "blocked senders" feature would be somewhat redundant. But Gmail should still add it, because not many people know about filters.

  16. I want to blacklist because it has the satisfaction (I believe) of letting the spammer know that his mail did not reach the intended recipient. ie he is a looser.

    True, I can filter out the spam, but it never give this satisfaction.

  17. No, the email doesn't bounce in Hotmail.

  18. Thank you, thank you,
    Just used you converter, helped me create a 20 address filter.

  19. how can i even leave a f*ckng comment when i dont have this but u want the readers 2 respond?

  20. Hi

    Help me how to block mail id.

  21. The 'has words' "is:spam" filter worked for me.


  22. The converter javascript has some minor bug. It doesn't treat quoted text separately than comma separated email addresses - hence input like:

    "mylastname, myfirstname " &, &

    produces incorrect output. In any case, great posting - hit on this page while trying to search for creating filter based on groups on Google Help forums. Cheers,

  23. Thanks a bunch
    just got em all in there, hoping it works

  24. We really really really want a filter that looks like this :

    if sender in MyGroup then (do what ever)

    Please! Don't make us beg.

  25. I just want to know how to create a addresses that I want to send a lot to about 6 people. I could do it with incredimail but can't figure it out in gmail.

  26. How to create a group in Gmail? Go to the Contacts page, click on the second icon that has a "plus" and enter a name for your group. Then go back to "My contacts" and select the contacts you want to add to the new group (you could use the search feature). When you selected the contacts, click on the Groups drop-down and then select "Add to [name of your group]".

  27. i created two mail for to test filter option is working fine or not.i created filter one of my gmail id and block from other one.I made a filter criteria as , if i get any mail from the user1 again it has to fwd the user1 mail to that user.As we have the option called Forward it to.But its not working....please help me.

  28. i tested again,its not working for forwarded id also from same domain.I meant fwd mail id also if it is ...its not working....

  29. I agree with PeteW
    I really really want to be able to reference my contacts and My groups in the filter screen.

  30. Thanks! I got rid of a spammer from a company called clicked cash.

  31. This is FANTASTIC! As a teacher, I can now create class filters in one shot! Thank you!

  32. Another call to let us filter by groups, that way each time we add someone to the group we wont also have to add them to the filter. I always forget the second step and people get left out of emails.

  33. Can't figure out how to create a filter that works based on a specific contact or group without any additional manual steps. E.g. "delete any email from that contact (or group)". Is this still a no go? Sad...


  35. E-mails are certainly playing an important role in communicating with people who are connected on the virtual space. One can send and receive a mail either from his e-mail account from a web browser or an account configured in an e-mail here


Note: Only a member of this blog may post a comment.