6/18 Protecting email addresses from spam bots
来源:互联网 发布:pc淘宝规蜜入口在哪里 编辑:程序博客网 时间:2024/06/12 01:15
之前是用<href="mailto:nobody@fake.address9z.com">就解决了,但是现在网上的一些bot会自动扫描源码和html码,所以容易被别人灌垃圾邮件。
有几种方法,js是一种,很简单,就是在html里面加上source,call一个函数产生mailto tag,比如:
<script>mail2("nobody","fake.address9z",0,"","Second using js");function mail2(name, dom, tl, params, display){document.write('<a href="'+m_+e(name,dom,tl)+params+'">'+display+'</a>');}</script>js还有一种:
<br/><script language="JavaScript">function noSpm(u){var domainArry=document.domain.split('.');var mydomain=document.domain;if(domainArry.length >= 3){mydomain=domainArry[1] + '.' + domainArry[2];}window.location='mailto:' + u + '@' + mydomain;}</script><a href="#" onclick="noSpm('username');return false;">Third using js</a>这样连产生的html里面也没有email 地址。我还挺喜欢这个的。
另外还有几个link比较有用:
http://stackoverflow.com/questions/483212/effective-method-to-hide-email-from-spam-bots
http://www.se3webservices.com/blog/protecting-email-addresses-from-spam-bots
今天上午又被wendy说了打瞌睡了,师兄给我说要我别被抓到,是啊,其实犯错可以,但是不被抓到就好了。我明明睡了个觉工作更有脑力了好吧,真是不会管理,女人当家,墙倒屋塌。我和朋友们聊天的时间平常你上哪里发现去,今上午又和PY聊了好久,他当年找工作的面试题,和苦日子,哎,真是不容易啊,我得做好准备了。我现在还是过得挺好的,别没个数。
最后wendy被说服了,想用图片展示email address,会方便些,这个点子很好,我想明天把它搞定,搞定这个api,为全校人民做贡献,靠自己才是女王。
0 0
- 6/18 Protecting email addresses from spam bots
- Email Addresses
- spam
- spam
- Sending Email from J2ME devices
- Send email from Android device
- Forward a email from company internal
- Get phone and email from page
- Sending Quick Email From Dynamics Ax
- Send Report from Same Email Address
- To avoid email sending by programming to go into spam folder让发送的邮件到收件箱而不是垃圾邮件
- Protecting your Web Apps from the Tyranny of Evil with OWASP
- Lineage2 Bots Information
- cf 575H Bots
- Angry Bots源码分析
- bayes spam
- Sicily1133.SPAM
- 什么是Spam
- 关于tomcat常遇到的问题
- 学习札记 ----wind7下如何安装SqlServer数据库
- Chrome保存网页为mhtml格式
- static in Java and C++
- ubuntu 11之后,如何使用ubuntu 10.04的经典界面。
- 6/18 Protecting email addresses from spam bots
- android大项目运行中出现问题汇总
- 万恶的Caffe
- C语言控制台窗口图形界面编程(总结)
- a数列求和
- 启动Tomcat 7.0.53时报错 401 Unauthorized
- 模拟Spring注入和读取配置文件信息(支持bean 书写顺序随意)
- 神奇的6174
- SourceTree Clone时 遇到"Protocol https not supported or disabled in libcurl"