档案

Posts Tagged ‘源码’

免费tumblr微博windows客户端(附下载链接和源码)

2011-08-22 留下评论

目前很火的 tumblr 微博,想必各位seoer都是知道的,大部分的人可能都是以给别人红心的方式做外链。其实在 tumblr 上发带链接的图片或者软文,然后被别人liked或者reblog也是一个不错的选择。只是 tumblr 在线发文章或者发图比较麻烦(我比较懒),而国内高手做的即便是收费的也仅局限于自动红心别人,这样就在一定程度上限制了seotumblr 上的发展。

今天推荐一款国外的 tumblr微博windows客户端(下载链接:http://dl.dbank.com/c0omoemxrm)
作者已经开源(源代码下载:http://dl.dbank.com/c0exuxlqsj)

软件是用C#做的。有能力的朋友可以试着增强下。
找了很久只找到这一款,估计是没有人做这个东西。要是能整合上seo的功能那就强大了。

欢迎大家来 我的tumblr 并且 follow me on tumblr

PHP源码防泄漏方法

2011-07-24 留下评论

四条预防PHP源代码泄漏的方法:

1)使用mod_security过滤输出严防泄漏 Use mod_security to filter output and prevent leakage (例如)

PHP代码

SecFilterOutput On

SecFilterSelective OUTPUT “<?php” log,deny

2)不要将关键敏感代码放到根目录中 Code should live outside of the web root (例如)

PHP代码

index.php:

<?php

include(‘../realroot/index.php’);

?>

3)更改默认的文件类型 Change the default file type (例如对http.conf做如下修改)

PHP代码

httpd.conf:

DefaultType application/x-httpd-php

4)绝对禁止访问根目录 Deny all outside of the webroot (假设你的根目录是 ‘www’ ,例如)

PHP代码

http.conf: (or .htaccess)

<directory />

Order Deny,Allow

Deny from all

Options None

AllowOverride None

<directory /www>

Order Allow,Deny

Allow from all

</directory>

分类:PHP 标签:, ,