/    Sign up×
Community /Pin to ProfileBookmark

protect email address from spammers

Hi. Suppose I have an email [email][email protected][/email].
I encode the email to hex coding by php,

In coding it looks like this.

<a href=”mailto:&#x74;&#x65;&#x73;&#x74;&#x40;&#x74;&#x65;&#x73;&#x74;&#x2e;&#x63;&#x6f;&#x6d;”>test[at]test.com</a>

I need to know is this correct to protect my emails from spammers.
Or I need to encode “test[at]test.com” too?

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@cgtOct 29.2010 — I would recommend encoding the test[at]test.com too. However, it is important to note that encoding it like this may not work. It's an old method and some web crawling spambots might have picked up on it. Alternativly you could try using an email form, reCAPTCHA (https://www.google.com/recaptcha/mailhide/) or a completely different method.
Copy linkTweet thisAlerts:
@uadeveloperOct 30.2010 — And on javascipt will not work? (document.write on real time?) this code bot does not understand.
×

Success!

Help @spongenika spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...