Hide your Email Address with the help of Facebook

facebook_email You probably know that Facebook uses an image format to display email addresses on profile pages.

While most people use this technique to protect their email addresses from spam bots, Facebook converts addresses into images for a completely different reason. They want to prevent their own users from exporting email addresses of their own friends out of the Facebook wall (through scrapping).

Use Facebook-generated Email Images outside Facebook

If you right-click and copy the web address of any email image inside Facebook, the URL would be something like this:

http://facebook.com/string_image.php?ct=ABCD1234&fp=8.7

where ABCD1234 is a unique string that is different for every email address and 8.7 is the font size that is used while rendering the image.

What’s interesting here is Facebook doesn’t require authentication for these URLs.

That means you can directly mention these image addresses in your Twitter messages, in online forums or any other public web pages where you are worried about mentioning your email address in plain text as spam bots might harvest them for the purpose of spamming you.

So the next time someone wants my email address on Twitter, I can point him to this Facebook URL – http://bit.ly/my-email. If I want to embed this email address images on a web page, the code would be:

<img src="http://www.facebook.com/string_image.php?ct=ABCD&fp=20" />

You can vary the font sizes by changing the value of the fp parameter in the URL as I have done in the following examples – these are all dynamically generated images.

Related: Hide Your Email Address from Spam Bots

Find this article at: http://labnol.org/?p=11477

Reader Comments

wow..This is interesting… And it ll be cool too.. to give the mail address in big font..hehe

You might want to consider using scr.im, which is better suited for this. You can refer to it at twitdom.com/scrim

Great tip, Thanks!

I’ll write about it on my blog tomorrow at 9 am (GMT +1)

It is pretty safe. However, I have reverse engineered this :) for one of our apps. Though we don’t make out code public, it is doable :). But it definitely takes a lot of work, so it is definitely safe to use this :)

How interesting! I always wondered about this. Thanks.

Hi,

This is quite interesting one, thanks amit

-MUn

Thanks Amith.
Informative and Interesting.
Best Wishes and Regards.

Wow, it is really a good tip. Thanks for sharing Mr. Amit.

@Amit

… or just linking the person to link ;)

Nice one…
Wonder if there was a way we could specify the email address also in the get url.
Is it the MD5 code for email address???

Very nice idea, but who knows how long it takes until FB will close that “service” for the public?

Wonderful article and the website as whole, great collection

Don’t make your brain neurons to burst. Go easy. use txtninja.com/

Pss: Any opening for technical writer here? How’s the tip guys?

It’s maybe useful too: services.nexodyne.com/email


Questions & Answers