6/18 Protecting email addresses from spam bots

之前是用<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="#" οnclick="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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
阅读下面材料,在空格处填入适当的内容(1个单词)或使用括号中单词的正确形式。 If including inter-state sections, those not protecting the northern border of China, the oldest _____56____(exist) section of the Great Wall of China was the Qi State "Great Wall". It stretches for over 500 kilometers (300 miles) from the Yellow River at Jinan eastwards to the East China Sea, almost ___57____(divide) Shandong Province in half. The "Great Wall" of the Qi State was ___58____(initial) built around 650 BC, and expended during the Warring States Period (475–221 BC). Before the Qi State Wall was built, natural barriers, i.e. rivers and mountain ranges, formed ____59_____ only defensible boundaries between territories as barriers ___60____ enemies. The State of Qi built its Great-Wall-esque military barrier along its southern border to prevent attacks from the State of Lu and the State of Chu. However, rapid development and ____61____(construct) have brought many new problems and challenges in protecting the wall. ____62____ is necessary to provide a solid legal guarantee for its conservation. To tackle the challenges, Shandong Province has passed a regulation protecting the structure____63____will take effect on Jan. 1. This year, Shandong has added 860 patrol posts in seven cities along the Qi wall, mainly recruiting farmers living nearby. Guo Jialian has been patrolling the section of the wall in Guangli village for three months. "I need to check ____64______ there is any damage to the wall that is caused by people digging earth from it. Awareness of protecting the Qi wall _____65_____ (enhance) in recent years. We all know the wall is a cultural relic," says Guo, adding that he frequently sees tourists coming to visit the ancient structure.
02-06

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值