public class ReferProtectionConfig extends Object
加速域名的Refer防盗链功能设置,加速域名创建后,默认不开启refer防盗链功能
| Modifier and Type | Field and Description |
|---|---|
protected String |
AllowEmpty
是否允许空refer访问,取值:on:允许;off:不允许;默认值:on。注:仅当选择白名单时,此项才生效
|
protected String |
Enable
配置是否开启或关闭 开启时,下述必须项为必填项;关闭时,只更改此标识,忽略后面的项目。
取值:
|
protected String |
ReferList
逗号隔开的域名列表
|
protected String |
ReferType
refer类型,取值:block:黑名单;allow:白名单,开启后必填
|
| Constructor and Description |
|---|
ReferProtectionConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowEmpty() |
String |
getEnable() |
String |
getReferList() |
String |
getReferType() |
void |
setAllowEmpty(String allowEmpty) |
void |
setEnable(String enable) |
void |
setReferList(String referList) |
void |
setReferType(String referType) |
protected String Enable
SwitchEnumprotected String ReferType
protected String ReferList
protected String AllowEmpty
public String getEnable()
public void setEnable(String enable)
public String getReferType()
public void setReferType(String referType)
public String getReferList()
public void setReferList(String referList)
public String getAllowEmpty()
public void setAllowEmpty(String allowEmpty)
Copyright © 2023. All rights reserved.