Cdn节点自定义防CC代码在哪里抄

来自cdnbest帮助文档
跳转至: 导航搜索

1. 登陆节点的3311后台,如何登陆节点3311后台查看:如何登陆cdn节点的3311后台
登陆后点击请求控制-->标记模块-->anti_cc模块

Cc1.png

Cc2.png

防CC代码模式有以下几种:

1. http redirect(普通)

HTTP/1.1 302 FOUND
Connection: keep-alive
Location: 模板:Url
<html><body><a href="模板:Url">continue</a></body></html>

2. html redirect

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Cache-Control: no-cache,no-store
<html><head><meta http-equiv="refresh" content="0;url=模板:Url"></head><body><a href="模板:Url">continue</a></body></html>

3. js plain

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Cache-Control: no-cache,no-store
<html><body><script language="javascript">window.location="模板:Url";</script><a href="模板:Url">continue</a></body></html>

4. js concat

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Cache-Control: no-cache,no-store
<html><body><script language="javascript">window.location="模板:Murl";</script></body></html>

5. js revert(复杂)

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Cache-Control: no-cache,no-store
<html><body><script language="javascript">模板:Revert:url;window.location=url;</script></body></html>

6. html manual

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Cache-Control: no-cache,no-store
<html><body><a href="模板:Url">continue</a></body></html>

7. deny

HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Cache-Control: no-cache,no-store
<html><body>try again later</body></html>