使用PHP来保护电子邮件地址 [英] using php to protect email addresses

查看:122
本文介绍了使用PHP来保护电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在创建一个包含多个联系电子邮件地址的网站。这些是
vlid地址,我想知道我是否可以使用php来改变这些地址所以

垃圾收集者无法得到它们,但是普通用户点击它们可以吗?

谢谢。

戴夫。

Hello,
I''m creating a site that has several contact email addresses. These are
vlid addresses, i''m wondering if i can use php to alter these addresses so
that spam harvesters can''t get them, yet a normal user clicking on them can?
Thanks.
Dave.

推荐答案

" dave" < DM ******* @ woh.rr.com>在消息中写道

新闻:XU ******************* @ fe2.columbus.rr.com ...
"dave" <dm*******@woh.rr.com> wrote in message
news:XU*******************@fe2.columbus.rr.com...
您好,
我正在创建一个包含多个联系电子邮件地址的网站。这些
是vlid地址,我想知道我是否可以使用php来改变这些地址,以便垃圾邮件收集者无法得到它们,但普通用户点击它们
可以?谢谢。
Dave。
Hello,
I''m creating a site that has several contact email addresses. These are vlid addresses, i''m wondering if i can use php to alter these addresses so
that spam harvesters can''t get them, yet a normal user clicking on them can? Thanks.
Dave.




我使用的方法和PHP.net使用的方法是str_replace@用在和

"。"用 dot。


因此 me@mysite.com 将显示如下:


我在mysite dot com


您可能只想考虑显示电子邮件地址,而不是制作

它是一个实际的链接,以确保任何寻找电子邮件地址的蜘蛛

无法获得您拥有的地址。对于用户来说,这需要打开他们的电子邮件帐户并手动输入电子邮件,而不是只需点击链接即可获得
,但最终它更安全。



The method I use, and PHP.net uses, is to str_replace "@" with " at " and
"." with " dot ".

So me@mysite.com would be displayed like this:

me at mysite dot com

You may want to consider only displaying the email address, and not making
it an actual link, to ensure that any spiders looking for e-mail addresses
can''t get the addresses you have. It makes it more of a hassle for the user
to have to open their e-mail account and type in the e-mail manually instead
of just clicking on a link, but in the end it''s safer.


" kingofkolt" < JE ********** @ comcast.net>在消息新闻中写道:< U9pKc.104959
"kingofkolt" <je**********@comcast.net> wrote in message news:<U9pKc.104959


a24.22251@attbi_s03> ...
a24.22251@attbi_s03>...
" dave" < DM ******* @ woh.rr.com>在消息中写道
新闻:XU ******************* @ fe2.columbus.rr.com ...
"dave" <dm*******@woh.rr.com> wrote in message
news:XU*******************@fe2.columbus.rr.com...
您好,
我正在创建一个包含多个联系电子邮件地址的网站。这些
Hello,
I''m creating a site that has several contact email addresses. These


vlid地址,我想知道我是否可以使用php来改变这些地址,以便垃圾邮件收集者无法得到它们,但普通用户点击它们
vlid addresses, i''m wondering if i can use php to alter these addresses so
that spam harvesters can''t get them, yet a normal user clicking on them


可以吗?


can?

谢谢。
戴夫。
Thanks.
Dave.



我使用的方法和PHP.net使用的方法是str_replace@用在和
。用点

所以 me@mysite.com 将显示如下:

我在mysite dot com

您可能只想考虑显示电子邮件地址,而不是将其作为实际链接,以确保任何寻找电子邮件地址的蜘蛛无法获得您拥有的地址。对于用户来说,打开他们的电子邮件帐户并手动输入电子邮件而不是仅仅点击链接就更麻烦了,但最后它还是''更安全。



The method I use, and PHP.net uses, is to str_replace "@" with " at " and
"." with " dot ".

So me@mysite.com would be displayed like this:

me at mysite dot com

You may want to consider only displaying the email address, and not making
it an actual link, to ensure that any spiders looking for e-mail addresses
can''t get the addresses you have. It makes it more of a hassle for the user
to have to open their e-mail account and type in the e-mail manually instead
of just clicking on a link, but in the end it''s safer.




为什么不将地址保留在脚本的php部分(对于任何''收藏家''看不见

)并使用表格和邮件()发送邮件,而不是

显示地址?


micha



why not keep the adresses in the php part of the script (and invisible
to any ''collectors'') and using a form and mail() to send mails without
showing adresses at all?

micha


这篇关于使用PHP来保护电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆