1. Home
  2. vDDoS Proxy Protection
  3. Configuration
  4. Captcha Security Mode

Captcha Security Mode

If you want to turn on Captcha Security Mode please edit the website.conf file as follows:

vDDoS Captcha Security Mode

Enable Security Mode:

1. Edit website.conf:

nano /vddos/conf.d/website.conf

# Website       Listen            Backend               Cache  Security  SSL-Prikey  SSL-CRTkey
your-domain.com	http://0.0.0.0:80 http://20.79.197.2:80 no     captcha       no          no

2. Register an Account in Google reCaptcha: https://www.google.com/recaptcha/admin#list

Get reCaptcha Sitekey & reCaptcha Secretkey:

vDDoS Google reCaptcha

3. Input Google reCaptcha KEY for your vDDoS:

nano /vddos/conf.d/recaptcha-secretkey.conf

DEBUG=False
RE_SECRETS = { 'your-domain.com': '6Lcr6QkUAAAAADFwJx58rhO-ulZGWIQLQckgW2Pz',
               'your-domain2.com': 'per_domain_recaptcha_secret_key2' }

nano /vddos/conf.d/recaptcha-sitekey.conf

# Website		reCaptcha-sitekey (View KEY in https://www.google.com/recaptcha/admin#list)
your-domain.com		6Lcr6QkUAAAAAO3858dCLTgdHJM-2VYo8CXaQJjO
your-domain2.com	9Lcr6QkUAAAAAO3858dCLTgdHJM-2VYo8CXaQJjO

4. Restart vDDoS (After each configuration change):

[root@vDDoS ~]# vddos restart

(Defensive Estimating ~ 273 RealReq/s)
0.0.0.0:80
vDDos service Restart success!


Check Security Mode:

[root@vDDoS ~]# curl -L http://your-domain.com

<!DOCTYPE html>
<html>
<script src="/vddosw3data.js"></script>
<body>
<div w3-include-html="/captcha.html"></div>
<script>
w3IncludeHTML();
</script>
<div class="footer">
<center>
<script type="text/javascript">var olC=function(){grecaptcha.render('captcha',{'sitekey':'6Lcr6QkUAAAAAO3858dCLTgdHJM-2VYo8CXaQJjO','callback':setcookie});};var setcookie=function(resp){document.getElementById('cpt').submit();};</script>
<script src="https://www.google.com/recaptcha/api.js?onload=olC&render=explicit" async defer></script>
<form method=post action="/captcha" id="cpt"><div id="captcha"></div></form>
<br />
<br />
</center>
</div>
</body>


Option:

You can customize the interface of Captcha Security Mode by editing the /vddos/html/captcha.html file:

Custom vDDoS Captcha Security Mode

Was this article helpful to you? Yes No