Last update at :2024-05-12,Edit by888u
Last time we introduced the vDDoS installation and startup tutorial. This time I have brought you other vDDoS configuration tutorials. The details are as follows. If you like it, you can take a look!
1. Whitelist settings
Modify the configuration file /vddos/conf.d/whitelist-botsearch.conf
#vi /vddos/conf.d/whitelist-botsearch.conf
#Alexa Bot IP Addresses
204.236.235.245; 75.101.186.145;
...
2. Ban certain IP access
Modify the file /vddos/conf.d/blacklist-countrycode.conf
#vi /vddos/conf.d/blacklist-countrycode.conf
geoip_country /usr/share/GeoIP/GeoIP.dat;
map $geoip_country_code $allowed_country {
default yes;
US yes;
CN no;#This is to ban Chinese IP access
}
deny 1.1.1.1;
Note: The default configuration file prohibits Chinese IP access, so the original "CN no;" must be removed here, or changed to "CN yes;" yes means allowed.
3. vDDoS defense level using reCaptcha mode
Modify the two configuration files recaptcha-secretkey.conf & recaptcha-sitekey.conf
# nano /vddos/conf.d/recaptcha-sitekey.conf
# Website reCaptcha-sitekey (View KEY in https://www.google.com/recaptcha/admin#list)
your-domain.com 6Lcr6QkUAAAAAxxxxxxxxxxxxxxxxxxxxxxxxxxx
...
#vi /vddos/conf.d/recaptcha-secretkey.conf
DEBUG=False
RE_SECRETS = { 'your-domain.com': '6Lcr6QkUAAAAxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'your-domain.org': '6LcKngoUAAAAxxxxxxxxxxxxxxxxxxxxxxxxxxx' }
recaptcha acquisition: https://www.google.com/recaptcha/admin#list Obtain the vDDoS key
4. Set IP to directly access the origin site
Modify the file /vddos/conf.d/cdn-ip.conf
#vi /vddos/conf.d/cdn-ip.conf
#Cloudflare
set_real_ip_from 103.21.244.0/22;
...
The above is the complete usage tutorial. If you can configure it, it proves that you already understand half of CC and DDoS protection. Of course, a script is a script, and defense cannot always be compared with adding money.
Recommended site searches: IP address, website space registration-free, server Hong Kong, Taiwan proxy server, virtual host purchase, high defense US server, US server website, space website, Hong Kong server rental, jsp space,
发表评论