服务器被攻击怎么办
1.防止CC攻击,不一定非要用高防服务器。比如,用防CC攻击软件就可以有效的防止CC攻击。推荐一些CC的防范手段:2.优化代码。
尽可能使用缓存来存储重复的查询内容,减少重复的数据查询资源开销。减少复杂框架的调用,减少不必要的数据请求和处理逻辑。程序执行中,及时释放资源,比如及时关闭mysql连接,及时关闭memcache连接等,减少空连接消耗。
3.限制手段。
对一些负载较高的程序增加前置条件判断,可行的判断方法如下:
必须具有网站签发的session信息才可以使用(可简单阻止程序发起的集中请求);必须具有正确的referer(可有效防止嵌入式代码的攻击);禁止一些客户端类型的请求(比如一些典型的不良蜘蛛特征);同一session多少秒内只能执行一次。
4完善日志。
尽可能完整保留访问日志。日志分析程序,能够尽快判断出异常访问,比如单一ip密集访问;比如特定url同比请求激增。
5使用第三方防护服务。
笔者试了很多的CC防御,最终还是选择使用知道创宇抗D宝,就使用体验来说,算是我使用很靠谱的CC防御产品了,对伪造搜索爬虫攻击、伪造浏览器攻击、假人攻击等效果很好。
选择带有DDOS硬件防火墙的机房。
1.目前大部分的硬防机房对100G以内的DDOS流量攻击都能做到有效防护。选择硬防主要是针对DDOS流量攻击这一块的,如果你的企业网站一直遭受流量攻击的困扰,那你可以考虑将你的网站服务器放到DDOS防御机房。但是有的企业网站流量攻击超出了硬防的防护范围了,那就得考虑下面第二种了。
2.目前大部分的CDN节点都有200G 的流量防护功能,在加上硬防的防护,可以说能应付目前绝大多数的DDOS流量攻击了。同时,CDN技术不仅对企业网站流量攻击有防护功能,而且还能对企业网站进行加速(前提要针对CDN节点位置)。解决部分地区打开网站缓慢的问题。笔者使用的CDN是知道创宇加速乐,用来加速和隐藏源站IP,DDOS流量洗使用的抗D宝,用来专门防止DDOS攻击的,目前使用效果还不错;
3.这一类主要针对DDOS攻击中的CC攻击进行防护,这种攻击手法使web服务器或其他类型的服务器由于大量的网络传输而过载,一般这些网络流量是针对某一个页面或一个链接而产生的。当然这种现象也会在访问量较大的网站上正常发生,但我们一定要把这些正常现象和分布式拒绝服务攻击区分开来。在企业网站加了负载均衡方案后,不仅有对网站起到CC攻击防护作用,也能将访问用户进行均衡分配到各个web服务器上,减少单个web服务器负担,加快网站访问速度。
更多了解可联系懿云小唐扣扣549844935
47.244.117.1
47.244.117.2
47.244.117.3
47.244.117.4
47.244.117.5
47.244.117.6
47.244.117.7
47.244.117.8
47.244.117.9
47.244.117.10
47.244.117.11
47.244.117.12
47.244.117.13
47.244.117.14
47.244.117.15
47.244.117.16
47.244.117.17
47.244.117.18
47.244.117.19
47.244.117.20
47.244.117.21
47.244.117.22
47.244.117.23
47.244.117.24
47.244.117.25
47.244.117.26
47.244.117.27
47.244.117.28
47.244.117.29
47.244.117.30
47.244.117.31
47.244.117.32
47.244.117.33
47.244.117.34
47.244.117.35
47.244.117.36
47.244.117.37
47.244.117.38
47.244.117.39
47.244.117.40
47.244.117.41
47.244.117.42
47.244.117.43
47.244.117.44
47.244.117.45
47.244.117.46
47.244.117.47
47.244.117.48
47.244.117.49
47.244.117.50
47.244.117.51
47.244.117.52
47.244.117.53
47.244.117.54
47.244.117.55
47.244.117.56
47.244.117.57
47.244.117.58
47.244.117.59
47.244.117.60
47.244.117.61
47.244.117.62
47.244.117.63
47.244.117.64
47.244.117.65
47.244.117.66
47.244.117.67
47.244.117.68
47.244.117.69
47.244.117.70
47.244.117.71
47.244.117.72
47.244.117.73
47.244.117.74
47.244.117.75
47.244.117.76
47.244.117.77
47.244.117.78
47.244.117.79
47.244.117.80
47.244.117.81
47.244.117.82
47.244.117.83
47.244.117.84
47.244.117.85
47.244.117.86
47.244.117.87
47.244.117.88
47.244.117.89
47.244.117.90
47.244.117.91
47.244.117.92
47.244.117.93
47.244.117.94
47.244.117.95
47.244.117.96
47.244.117.97
47.244.117.98
47.244.117.99
47.244.117.100
47.244.117.101
47.244.117.102
47.244.117.103
47.244.117.104
47.244.117.105
47.244.117.106
47.244.117.107
47.244.117.108
47.244.117.109
47.244.117.110
47.244.117.111
47.244.117.112
47.244.117.113
47.244.117.114
47.244.117.115
47.244.117.116
47.244.117.117
47.244.117.118
47.244.117.119
47.244.117.120
47.244.117.121
47.244.117.122
47.244.117.123
47.244.117.124
47.244.117.125
47.244.117.126
47.244.117.127
47.244.117.128
47.244.117.129
47.244.117.130
47.244.117.131
47.244.117.132
47.244.117.133
47.244.117.134
47.244.117.135
47.244.117.136
47.244.117.137
47.244.117.138
47.244.117.139
47.244.117.140
47.244.117.141
47.244.117.142
47.244.117.143
47.244.117.144
47.244.117.145
47.244.117.146
47.244.117.147
47.244.117.148
47.244.117.149
47.244.117.150
47.244.117.151
47.244.117.152
47.244.117.153
47.244.117.154
47.244.117.155
47.244.117.156
47.244.117.157
47.244.117.158
47.244.117.159
47.244.117.160
47.244.117.161
47.244.117.162
47.244.117.163
47.244.117.164
47.244.117.165
47.244.117.166
47.244.117.167
47.244.117.168
47.244.117.169
47.244.117.170
47.244.117.171
47.244.117.172
47.244.117.173
47.244.117.174
47.244.117.175
47.244.117.176
47.244.117.177
47.244.117.178
47.244.117.179
47.244.117.180
47.244.117.181
47.244.117.182
47.244.117.183
47.244.117.184
47.244.117.185
47.244.117.186
47.244.117.187
47.244.117.188
47.244.117.189
47.244.117.190
47.244.117.191
47.244.117.192
47.244.117.193
47.244.117.194
47.244.117.195
47.244.117.196
47.244.117.197
47.244.117.198
47.244.117.199
47.244.117.200
47.244.117.201
47.244.117.202
47.244.117.203
47.244.117.204
47.244.117.205
47.244.117.206
47.244.117.207
47.244.117.208
47.244.117.209
47.244.117.210
47.244.117.211
47.244.117.212
47.244.117.213
47.244.117.214
47.244.117.215
47.244.117.216
47.244.117.217
47.244.117.218
47.244.117.219
47.244.117.220
47.244.117.221
47.244.117.222
47.244.117.223
47.244.117.224
47.244.117.225
47.244.117.226
47.244.117.227
47.244.117.228
47.244.117.229
47.244.117.230
47.244.117.231
47.244.117.232
47.244.117.233
47.244.117.234
47.244.117.235
47.244.117.236
47.244.117.237
47.244.117.238
47.244.117.239
47.244.117.240
47.244.117.241
47.244.117.242
47.244.117.243
47.244.117.244
47.244.117.245
47.244.117.246
47.244.117.247
47.244.117.248
47.244.117.249
47.244.117.250
47.244.117.251
47.244.117.252
47.244.117.253
47.244.117.254
47.244.117.255
页:
[1]