关于wordpress版权的设置

引言:HzlzH被全站采集了,觉得很有意思,于是对 wordpress 版权方面修改了下!

1、使用 知识共享许可协议 授权博客文章

在 博客 Footer 添加添加授权协议,选用的是 署名-非商业性使用-相同方式共享 3.0[/url]。
这个协议大家并不陌生,话说在互联网上最能保护自己署名的协议就是它了,一般看到这些协议的人都会在转载时写明来源的。
  跟 zww 讨论了下,也参照了一些他的设置,

本博客规定的是:转载需注明原文出处,不可商用我的作品,修改或演绎 我的作品也必须以同样的协议发布。

2、除 单独文章页面Feed页面,均摘要输出

好处:减少全站的重内容;增加文章在搜索引擎中的 权重,也就是SEO;避免被采集;
       这一点是新主题 Dot-a 之前没有考虑的,现在做了修改如下:

index.php 中的  the_content(__('Read more')); 替换为

 <?php if(is_category() || is_archive() || is_home() ) {
     the_excerpt();
 } else {
     the_content(__('Read more'));
 } ?>

achieve.php 中的 the_content(__('Read more')); 替换成 the_excerpt();
PS: 若要修改 摘要的 输出字数 和 [...] 需在 wp-include/formatting.php 中搜索 wp_trim_excerpt() 这个函数即可

3、为 单独文章RSS输出 添加版权信息

functions.php 中加入以下函数即可:注意 红色部分是个,指向 Footer 的id="copyright" 的DIV。

function copyright($content) {
	if(is_single()||is_feed()) {
		$content.='<div style="border-left:3px solid #999999;padding-left:5px;">
<span style="font-weight: bold;">版权所有&copy; HzlzH </span>| 本文采用 <a title="署名-非商业性使用-相同方式共享" href="#copyright">BY-NC-SA</a> 进行授权
<br/>
转载需注明 转自: 《<a href="'.get_permalink().'" title="'.get_the_title().'">'.get_the_title().'</a>》
</div>';
	}
	return $content;
}
add_filter ('the_content', 'copyright');

总结:至此,本博客只有 单独页面 和 feed 输出是全文,且有明确的版权说明,而且我有去掉了一个插件wp-copyrighted-post
         相信下一次介绍我最新的插件列表的时候,绝对少于10个插件。

版权所有© HzlzH | 本文采用 BY-NC-SA 进行授权
转载需注明 转自: 《关于wordpress版权的设置

相关文章

{ Leave a Reply ? }

  1. Showfom China Google Chrome Windows

    :roll: 过两天可以一起干坏事咯

    • 万戈 China Mozilla Firefox Windows

      @Showfom: 从实招来,干坏事怎么能没有我 8)

  2. winy China Google Chrome Windows

    全站采集,囧

  3. bolo China Mozilla Firefox Windows

    cc协议只适合非商业授权,条款太简单了

  4. QiQiBoY China Mozilla Firefox Windows

    其实这个毫无用处 :cry:

      • QiQiBoY China Mozilla Firefox Windows

        @HzlzH: 哈哈,是呀,跟风嘛。。 :?:

  5. 林木木 China Google Chrome Windows

    全站?牛X!

  6. A.shun China Opera Windows

    在feed中插入原文链接是必须的,采集什么的最讨厌了 :-x

    我和om的看法也一样。
    不过我用的是“署名-非商业性使用-相同方式共享 2.5”,很早以前就是了
    2.5和3.0不知道什么区别

  7. mice China GreenBrowser Windows

    :roll: 大神哇 全站被采集 :evil:

  8. 学夫子 China Internet Explorer Windows

    这个对付采集的应该有点效果,至少给你留一个链接

  9. 掌柜的马甲 China Mozilla Firefox Windows

    还没见过全站被采集的呢…

  10. 七叶草 China SouGou Browser Windows

    采集器真强大,有的人很恶心的,会去掉版权的。

  11. 乐友 China Internet Explorer Unknow Os

    拜读了,很受用,谢谢。

  12. zwwooooo China Mozilla Firefox Windows

    不错,我插件刚好10个,哇咔咔

      • Dianso China Google Chrome Windows

        @HzlzH: 我启用了40个,一共有80个,主题的function还有十几个功能 :!:

        • 集趣 China 360 Browser Windows

          @Dianso: 80个插件?你太厉害了吧

  13. MOPVHS China Google Chrome Windows

    :-| 哇塞,全站采集~~~

  14. 记忆盒子 China Internet Explorer Windows

    其实,这些说明都是多此一举,人家采集是肯定不会留下你的任何信息,特别是链接。不过,加了版权声明,文章给人感觉正式些。

  15. 百奥博 China Mozilla Firefox Windows

    对了,发现你的新theme在ie6下sidebar下移啦!我猜可能你的电脑上已经剔除ie6啦!呵呵

  16. 企业网站建设 China Internet Explorer Windows

    一些人还是会无视的。

  17. 雅丹 China Internet Explorer Windows

    我 也去试试 不过 好多皮不一样!~估计设置的也就不一样

  18. 喜美绘官网 China Maxthon Windows

    最讨厌采集的~

  19. 扒哥 China Internet Explorer Windows

    ZB的路过了
    这个暂时保留

  20. Surpet China Opera Windows

    :!: :!: 很同情你被采集的事情
    不过 你这个坏淫 活该!

  21. ikeeptrying China 360 Browser Windows

    我的是zb~

  22. 皓辰 China 360 Browser Windows

    我什么时候能被人全站采集……

  23. 老谭 China Google Chrome Windows

    @Showfom: 第一条留言集合了我了解到的WordPress强人多个,自力博客在WordPress圈人缘很好哟

  24. 捷易通 China 360 Browser Windows

    到过了就留个脚印

  25. 特殊符号 China 360 Browser Windows

    不错。。支持下

  26. yetone China Google Chrome Windows

    全站啊,膜拜 :cry:

  27. merror China Google Chrome Windows

    这个纯技术。
    这样 被采集的文章就会带上版权标识了么?

  28. 没事逛逛,看看稀奇,了解了解,要不社会该把我淘汰了产品:手机信号屏蔽器,手机信号放大器,手机信号干扰器,手机信号增强器,手机屏蔽仪.

  29. 草民会所 China Internet Explorer Windows

    怎一个杯具了得……全站采集……

  30. 立柱博客 China Google Chrome Windows

    祝全站采集的人一辈子买方便面没有调料包,买康师傅绿茶都是谢谢惠顾。

  31. 采集不要钱 China Mozilla Firefox Windows

    不小心 把站长的站全采了。。纯粹学习,,手头无聊!!哇哈哈!
    :roll:

  32. 亿品元素 China Internet Explorer Windows

    祝全站采集的人一辈子买方便面没有调料包 :-D

  33. 涉水轻舟 China Mozilla Firefox Windows

    :!: :lol: :idea: :evil: :arrow:

  34. 涉水轻舟 China Mozilla Firefox Windows

    :roll:

  35. oalleno China Mozilla Firefox Windows

    暂时留着,以备后用啊。

  36. 倡萌 China SouGou Browser Windows

    好囧啊 半个月前 我的站就开始被全站采集了 到现在还是 看来我也要弄点版权之类的 不知道有没有办法可以防止被采集啊

  37. 浩子 China Mozilla Firefox Windows

    前些天我也加上了输出版权

  38. 小星 China Google Chrome Linux

    一会试试~我的还没有这东东呢~ :!:

  39. hooye China Google Chrome Windows

    嗯~ 学习了

  40. 记得有一个防拷内容的插件 忘记叫什么名字了

  41. 按照第3个方法做好像没有起到效果
    不知道怎么回事 而且feed域名都出了问题

  42. 黄天化 China Unknow Browser Unknow Os

    版权也没有啥意思。别人采集就全去了

  43. 英文SEO China Internet Explorer Windows

    好像没有这么复杂呀

  44. Anonymous China Google Chrome Windows

    haha NB

  45. SEO优化 China Google Chrome Windows

    好像可以直接用插件实现,而且现在大多数的模板设计都直接考虑这个情况了!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)