Re: bkbits - "@" question

From: Mark Frazer
Date: Thu Oct 28 2004 - 12:52:53 EST


Larry McVoy <lm@xxxxxxxxxxxx> [04/10/23 01:31]:
> The web pages on bkbits.net contain email addresses. This is probably
> about a 4 year too late question but would it help reduce spam if we
> did something like s/@/ (at) / for all those addresses?

Hi Larry: I've used this for a while to add email addresses to my web
pages and I get almost no spam any more, < 10 per month!

[mjfrazer@pacific depictII]$ html-encode mark@xxxxxxxxxxxx
&#109;&#97;&#114;&#107;&#64;&#109;&#106;&#102;&#114;&#97;&#122;&#101;&#114;&#46;&#114;&#111;&#103;
[mjfrazer@pacific depictII]$

I've attached the source.

> What are all of you doing to filter spam?

I use bogofilter, but only get about 10 per month anyways.

cheers
-mark
--
People said I was dumb but I proved them! - Fry
#include <stdio.h>
#include <unistd.h>

int usage (char *err) {
if (err) printf ("%s\n", err);
printf ("Usage: html-encode [-v] <string> <string> <string>\n");
return 1;
}

int main (int argc, char **argv)
{
int i, j, verbose = 0;

while ((i = getopt (argc, argv, "v")) > -1) {
switch (i) {
case 'v': verbose = 1; break;
default: return usage (0);
}
}
if (argc - optind < 1)
usage ("Nothing to do");

for (i = optind; i < argc; i++) {
if (verbose) printf ("%s: ", argv[i]);
for (j = 0; j < strlen (argv[i]); j++) {
printf ("&#%d;", argv[i][j]);
}
printf ("\n");
}

return 0;
}