lighttpd设置主机头虚拟主机防李鬼域名盗用你的网站
最近百度关键字funcool发现很多网站打开之后和我的网站一模一样,以为是整个网站内容被拖走了,后来发现我更新的内容立刻就在这些李鬼网站上出现了。Ping这些域名后,原来是这些域名直接指向了我主机的IP。为了防止这些李鬼,必须想出一个解决方案。通过度娘得到消息:主机头绑定。
最近百度关键字funcool发现很多网站打开之后和我的网站一模一样,以为是整个网站内容被拖走了,后来发现我更新的内容立刻就在这些李鬼网站上出现了。Ping这些域名后,原来是这些域名直接指向了我主机的IP。为了防止这些李鬼,必须想出一个解决方案。通过度娘得到消息:主机头绑定。
在Godaddy上注册的域名,在国内的访问一直不稳定,经常出现无法解析域名的情况,估计是GFW的问题,解决办法就是更换DNS,下面就把更换Godaddy更换NS的方法介绍一下。
文章来源 www.kowen.cn
一个通用的struts2下载Action,下载链接传入两个参数:
文章来源 www.kowen.cn
今天写程序时遇到一个问题,提交代码到远程服务器时遭到了拒绝,报错如下:
后来分析了一下,原因是我刚刚push了restruct分支到服务器,但是我代码有个地方忘了改了,改完之后使用的 git commit –amend 命令在本地提交了修改,造成了本地的最新版本和远端最新版本的不一致。 于是按照提示先运行了 git pull origin restruct , 然后再次push成功.
最近捣鼓ipsec vpn,需要用到iptables相关知识,搜到了debian网站上的这篇文章,顺手翻译一下,以备查阅
文章来源 www.kowen.cn