去评论
推扬网

施德扩:怎么防止网站被攻击?有什么预防措施?

admin
2020/08/11 14:15:14

应豪的回答:

平时养成良好的备份网站数据和网站关键程序的习惯,最好是打包到本地电脑里;关键文件权限设置一定要做好;网站最好采用全静态页面,因为静态页面是不容易被黑客攻击的;ftp和后台相关密码设置强口令。经常检查网站的导出链接是否有可疑链接;可以在网站装一个360。一定要选择一个有实力和规模并且具备安全防护的空间服务商。

达子香的回答:

hsrp不是这么用的,是核心层或者说是路由器备份使用,他们两台彼此可用一条光纤连接,启hsrp后两台路由器会虚拟出一个ip地址,如有损坏,备用设备自动切换,下面二层交换机通常使用stp防环,如果二层是cisco的,使用pvst+ 组建hsrp关键是汇聚层交换机要有两根线分别接入到两台路由器上,但在节点设置网关时,只设置他们两台路由器公用的那个ip地址 配置如下 version 12.0 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname r1 ! enable password cisco ! ip subnet-zero ! ! ! ! interface ethernet0 ip address 136.147.107.101 255.255.0.0 no ip redirects no ip directed-broadcast standby 150 timers 5 15 /* 定义150组5秒交换一次hello信息,15秒没收到 hello信息就开始切换 */ standby 150 priority 110 /* 定义150组的主路由器权值,值越大,为主路由 器希望越大 */ standby 150 preempt /* enable 150组的hsrp抢占功能 */ standby 150 authentication cisco /* 设置150组的router身份验证串 */ standby 150 ip 136.147.107.100 /* 定义150组的浮动地址,也是这台router 连接的网络的网关 */ standby 150 track ethernet0 /* 定义监控的端口 */ ! interface serial0 no ip address no ip directed-broadcast no ip mroute-cache shutdown no fair-queue ! ip classless ! ! line con 0 transport input none line 1 16 line aux 0 line vty 0 4 password cisco login ! end