Tag Archives: spam

Save your contact page from spam

there are a couple of different methods for blocking email harvesting bots from your contact page. Some involve javascript and obfuscating the email address. some involve putting the address in an image. my new favorite trick involves both.
first, go get your email address turned into escaped HTML characters. Take the code they give you, and wrap it in a span with a specific class, and add the same class to the link:

<span class="jsmail"><!--
document.write("<a href='mailto:put your scrambled address here' class='jsmail'> wp-admin [at] archgfx [dot] net</a>"))
// --> 



I also changed the ‘contact us!’ text to a human readable, but not copyable version of the email address. Now, get your email turned into an image, and we’re going to use the image in CSS, so that even if a real person is browsing the site with javascript disabled, they’ll still see the email address:

.jsmail {

display: block;

width: 129px;

height: 11px;

background: url('http://safemail.justlikeed.net/e/dd6330802be7d20f41dc95336e2acbfa.png') no-repeat 0 0;

text-indent: -9000px;


i like it. it’s not completely accessible, but it’s pretty good. it’s reliable, and it won’t be confusing to people with older browsers or strict security settings. Here’s an example.


Telling Jesus to go to hell

alright, Mullenweig, you win. It’s finally worth the effort for me to take Owen’s advice and installed X-Dashboard. You would have thought that it had been asked for enough times. You would have thought that the recent wp-hackers waffling over the inclusion of widgets would have brought it to mind:

WordPress Planet is not core functionality. It’s frilly, extra, bloat.

If you’re trying to simplify the wordpress admin area, start here. I’ve left the admin panel alone because it’s never been worth the effort to hack a core file, or install a plugin to get rid of stuff. plugins should be for adding functionality. Now it’s worth it because some idiot jesus freak thinks it’s okay to preach at people from the WTC.

Looks like i’ll be subscribing to Alex, Owen, and the other developers who have a sense of propriety in my RSS reader now. I would have thought after the mike little birthday incident, you would have the sense to tell your freaky religious zealot friends to keep their spammy preaching to themselves.


due to x-Dashboard looking ugly(er) in Tiger Admin (it doesn’t use the #zeitgeist div, so the sidebar doesn’t float properly), I hacked /wp-admin/index.php to show feeds from Ozh’s Planet wordpress. (he has the good sense to only syndicate the wp-plugins category from WTC, hence, no jesus.

Spam Comes From The Devil

the number of the beast

Have you seen these stats? I believe it. I grabbed that image on wednesday before I left for san francisco. In the week hence, that number has tripled. Of course, the presence of 'ham' at the bottom of the graph means that i have to check every single spam that comes in anyway. (my sister was ham at one point). Couple that with the fact that my blog has stopped emailing me when people comment (the other stat missing from the graph, false negatives), and i'm really having to watch my blog like a hawk.

That said, this is the worst way to try to get people to contribute i've seen in a while. "our shit's broke, but it works better if you pay for it. no, really!" ??? the Spam/Ham graph is a far better marketing tool for akismet than a system error.

Which is not to say I don't want to contribute to Akismet. it's just that my blog isn't making any money, and there are a lot of other economic factors. Maybe if I ever see the prize money from the theme competition, I'll send it in their direction.

Also, "Because we're in the middle of a comment spam torrent" doesn't sound accurate to me. This is just now approaching the amount of email spam i get per account, and that hasn't slowed down, ever.

UPDATE: my blog just emailed me a dozen of the comments it had missed. weird. it's still not current, yet.

UPDATE 2: now it is.

UPDATE 3: it's actually a gmail issue, not at all related to wordpress.