cascade_fx has asked for the wisdom of the Perl Monks concerning the following question:
My wife is getting tons of annoying porn spam that use img includes to display some pretty "clinical" pictures for her. It is hard to tell by the subject lines alone that she is going to be greeted by a gynocological exam photo when she opens any particular piece of mail. The subject lines say things like, "I just want to double check the time for our meeting" or something similar. Given that she is an college advisor and works with thousands of students, the subject lines are plausible enough to require her to open and the email addresses are to numerous to remember if each email is from a real client or not.
She tried the Outlook spam tools, but the only block based on the exact same email address. I had her try SpamNet from Cloudmark (which I have had tons of success with), but caused resource and lockup issues with her PC.
She uses Windows 98 (per mandate... though I would want the final version to be easily updated to work with 2000/XP/Future release as well) and Outlook. While Outlook will allow you to set the default format of sent mail, it won't (in version 2000) let you set the default read format... so any HTML is rendered (and any images are included inline) when opened.
I have had some success in having her redirect server names garnered from the HTML source of the message using her hosts file. She just opens the source of the message (the first time she receives one that isn't blocked) and puts the server name that the image is being pulled from (example: www.pr0n.com) and redirects to the loopback IP address (127.0.0.1).
It works great (besides proving that I am blessed with a wife who is willing to learn how to maintain a hosts file) if the img src is referenced by name. Well, the pr0n spammers are onto this technique and now reference all the images by IP only. So, there is no way to build a defense through the hosts file.
So. I looked all over and found a number of personal firewalls that allow you to block by IP address... but they are fixing different problems and seem to be attacking the problem with a sledgehammer. I haven't found any personal proxies that allow you to create a blacklist by name and IP that will work for all Internet traffic. Most proxies that I have found just allow you to point the browser to a proxy and work from there. Unfortunately, Outlook ignores them.
So, I figured that a little perl proxy shouldn't be impossible to whip up. I would want it to pass all traffic through except that which has been explicitly blacklisted by name (www.pr0n.com) or by IP (69.69.69.69). For those, it should just send back an appropriate reset, timeout, or error. Everything else should remain untouched.
So, I don't want a solution (unless one exists already), but pointers to snippets, resources, docs, and howtos would be wonderful.
Thanks for anything that you have to give.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Internet Proxy for Windows
by Jaap (Curate) on Jan 29, 2003 at 15:20 UTC | |
by Anonymous Monk on Jan 29, 2003 at 16:15 UTC | |
|
Re: Perl Internet Proxy for Windows
by Mr. Muskrat (Canon) on Jan 29, 2003 at 16:02 UTC | |
by cascade_fx (Sexton) on Jan 29, 2003 at 21:06 UTC | |
|
Re: Perl Internet Proxy for Windows
by meetraz (Hermit) on Jan 29, 2003 at 18:09 UTC | |
by SysApe9000 (Acolyte) on Jan 29, 2003 at 19:19 UTC | |
|
Re: Perl Internet Proxy for Windows
by jonadab (Parson) on Jan 30, 2003 at 03:43 UTC | |
|
Re: Perl Internet Proxy for Windows
by pg (Canon) on Jan 29, 2003 at 18:32 UTC | |
|
Re: Perl Internet Proxy for Windows
by logan (Curate) on Jan 29, 2003 at 18:42 UTC | |
|
Re: Perl Internet Proxy for Windows
by Mr. Muskrat (Canon) on Jan 29, 2003 at 21:14 UTC | |
|
Re: Perl Internet Proxy for Windows
by Azhrarn (Friar) on Jan 30, 2003 at 07:17 UTC | |
|
Re: Perl Internet Proxy for Windows
by line_noise (Sexton) on Jan 29, 2003 at 23:09 UTC | |
|
Re: Perl Internet Proxy for Windows
by Notromda (Pilgrim) on Jan 29, 2003 at 23:41 UTC |