摘要: # CentOS-Media.repo## This repo is used to mount the default locations for a CDROM / DVD on# CentOS-6. You can use this repo and yum to install items directly off the# DVD ISO that we release.## To use this repo, put in your DVD and use it with the other repos too:# yum --enablerepo=c6-media [co... 阅读全文
posted @ 2011-12-29 11:17 haiwei.sun 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: # CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirr. 阅读全文
posted @ 2011-12-29 11:15 haiwei.sun 阅读(2228) 评论(0) 推荐(0) 编辑
摘要: 中科大(http://centos.ustc.edu.cn/)的镜像站里面有Centos 6.0 镜像了。先备份一下/etc/yum.repos.d/CentOS-Base.repo#mv /etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.bak然后把/etc/yum.repos.d/CentOS-Base.repo文件改为# CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for Cent 阅读全文
posted @ 2011-12-29 11:13 haiwei.sun 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: 预防攻击:|-全局变量 1、register_globals=off 2、判断包含文件是否在本地服务器存在 if(file_exists($module.'.php')){ include $module.'.php'; }|-跨站运行脚本 通过js|-sql注入 addslashes() strip_tags()|-一些让脚本运行“安全”的技术 1、用户输入的验证 关闭register_globals:php就不再自动注册请求数据为全局变量(如Cookie,Session,Get,Post). 设置error_level选项到最高级别(E_ALL | E_ST 阅读全文
posted @ 2011-12-29 11:01 haiwei.sun 阅读(122) 评论(0) 推荐(0) 编辑
返回顶部