防采集:在文章中随机插入网站版权文字 - TOMMYHU - 专注互联网开发及运营技术,提供相关资料及软件下载,奇趣网络时事评论!
Mar 9

防采集:在文章中随机插入网站版权文字 不指定

tommyhu , 15:08 , ASP , Comments(1) , Trackbacks(0) , Reads(9182) , Via Original Large | Medium | Small
这几天比较烦,网站不断被人抄袭采集,在百度对采集网站还没有有效的打击下,我们不能指望百度可以识别这些采集网站,那么只能依靠我们自己给我们辛辛苦苦做的内容加上版权文字,以打击这种不劳而获的采集行为。

    前阵子,我也写过一篇防采集的文章《如何防止网站内容被采集?》,其中有些方法不免极端化了,也是不得已而为之。今天,飘易就从另外的一个角度谈谈如何保护自己的内容,即使别人采集了,也要免费帮我们打广告。

    当然,如果你的网站文章中有图片,那么请记得一定要打上自己的LOGO,而且这个LOGO不要固定在这些图片的某个角落里,一定要随机出现在图片的任意位置,做到神出鬼没,让采集者感慨:对方网站站标真是变幻莫测,防不胜防啊……

    切入正题。我们怎么才能在自己的文章中随机插入版权文字呢?昨晚花了点时间,写了段简单的随机插入随机的文字的代码,asp版本的:


''===随机生成干扰文字函数开始===
''===随机生成干扰文字函数一===
function rndk()
dim s,s1,n,n1
''随机插入你的网站版权文字,多个以|分割
s="来自:飘易博客。|飘易:http://www.piaoyi.org。|http://www.piaoyi.org。|PIAOYI.ORG。|<font style=display:none>http://www.ijuqing.com</font>|<span style=""display:none""><a href=http://www.piaoyi.org>piaoyi</a></span>"
s1=split(s,"|")
Randomize
n=Int((ubound(s1) - lbound(s1) + 1) * Rnd + lbound(s1))
Randomize
n1=Int((10 - 1 + 1) * Rnd + 1)
if n1<=3 then '30%概率出现
rndk=s1(n)
else
rndk=""
end if
end function
''===随机生成干扰文字函数二===
function transtr(str) '调用该函数转化
dim str1,i,k
k="<p></p>" '分割关键字
str1=split(str,k)
for i=lbound(str1) to ubound(str1)
transtr=transtr&str1(i)&rndk()&k
next
end function
''===随机生成干扰文字函数结束===

    在具体调用的时候,比如我们的内容字段content,用上面的函数转换一下就ok了,像transtr(content)这样就行了。我这里取的分割关键字是段落结束之前的<p></p>,你也可以改成其他如<br>换行等,如果你的字段没有经过UBB转化,那么换行回车符号为 CHR(10) & CHR(10),分割关键字改成它就可以了。

    我们网站的内容虽然不能说百分百是原创,但也是我们一篇篇辛辛苦苦地整理出来的啊,别人通过程序几个小时就能把你几个月甚至几年的心血就偷窃过去了,放到谁身上也不舒心啊。

    所以,飘易放出这样的随机插入版权的代码,希望能遏制部分这些采集者的嚣张气焰。


▲返回顶部
Last modified by tommyhu on2009/04/04 23:56

互联网开发网友 Email Homepage
2014/08/26 19:17
for Davis, then Croce is to blame for Greenberg.

Croce entered the season admitting to having no knowledge of the NBA. His subsequent moves proved how right he was. While he fine-tuned lots of things - from the selection of food at the concession stands to halftime entertainment - the team, which he had promised to keep his hands off until season's end, was imploding before him.

Croce now says he has had a crash course in the NBA. Odds are, he will never again allow things to go so bad for so long.

Greenberg got his job in part by impressing Croce with his complicated statistical matrixes of players' performances, his attention to details, his seemingly encyclopedic knowledge of personnel. But close scrutiny brings his judgments into question.

After his hiring, Greenberg used the admittedly paltry $5 million the Sixers had available under the salary cap to sign four players. Of those, only Mark Davis, whom Minnesota had given up on and whom the Sixers had signed for the NBA minimum, contributed significantly to the team. The performances of Greenberg's other signees varied from mediocre to terrible.

Lucious Harris, signed to a seven-year contract as a free agent though he had played only a backup role on a pathetic Dallas team, had been coached in college by Seth Greenberg, Brad's brother. Brought in as the backup shooting guard, he played in 54 games. He averaged only 5.4 points and shot a less-than-anemic 38 percent.

The brittle Don MacLean, who has been limited by injuries to 56 and 39 games the last two seasons, scored well at times off the bench. But the bench and the trainer's room are where MacLean, another free-agent signee, spent half the season. He played in only 41 games.

And it soon became clear that 35-year-old Michael Cage - brought in as a free agent to shore up the Sixers' flaccid middle, with expectations that he might start at center, as he had in 80 games for Cleveland last season - had little, if anything, left and was particularly unsuited for the up-tempo game that benefited the younger players.

Mark Davis, working for a limited salary and arriving with limited expectations, was a surprise. A raw but athletic player, he fit neatly with Iverson and Stackhouse, and he showed signs of developing into the Sixers' best on-the-ball defender.

But even Davis' signing is unlikely to mean long-term benefits for the Sixers. Under the players' collective-bargaining agreement with the league, the Sixers, who will be over the salary cap next season if they do not pull off a major trade to alter the situation, can offer him only a 20-percent pay increase. Reality says that another team, having seen what he can do, will offer him much more.

In all likelihood, salary-cap problems, with much of their cap room being gobbled up by Coleman's elephantine contract, will continue to plague the Sixers next season. The team is saddled with nine players who have guaranteed
Pages: 1/1 First page 1 Final page
Add a comment

Nickname

emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot