ngx_http_js_challenge_module
ngx_http_js_challenge_module copied to clipboard
Simple javascript proof-of-work based access for Nginx with virtually no overhead. (Similar to Cloudflare's anti-DDoS feature)
Add please white list for IP and useragents please. to skip challenge.
Is it possible to see how many requests passed JS Challange, how many blocked and so on as in the screenshot
Please add user agent checking for challange, or is there way to check this?
CentOS Linux release 7.7.1908 (Core) objs/src/http/ngx_http.o:/root/cache/openresty-1.19.3.1/build/nginx-1.19.3/src/http/ngx_http.c:625: first defined here objs/addon/ngx_http_js_challenge_module/ngx_http_js_challenge.o: In function `ngx_http_create_locations_list': /root/cache/openresty-1.19.3.1/build/nginx-1.19.3/src/http/ngx_http.c:1018: multiple definition of `ngx_http_html_default_types' objs/src/http/ngx_http.o:/root/cache/openresty-1.19.3.1/build/nginx-1.19.3/src/http/ngx_http.c:907: first defined here collect2: error: ld returned 1 exit status make[2]:...
if ($http_user_agent ~* "MicroMessenger") { js_challenge off; } nginx: [emerg] "js_challenge" directive is not allowed here in is not support if ?
sir make error . -o objs/addon/ngx_http_js_challenge_module/ngx_http_js_challenge.o \ /root/ngx_http_js_challenge_module//ngx_http_js_challenge.c /root/ngx_http_js_challenge_module//ngx_http_js_challenge.c: In function ‘get_challenge_string’: /root/ngx_http_js_challenge_module//ngx_http_js_challenge.c:261:5: error: implicit declaration of function ‘SHA1’ [-Werror=implicit-function-declaration] SHA1((unsigned char *) buf, (size_t) (sizeof(int32_t) + addr.len + secret.len),...
If things got stable, can you please [tag a release version](https://github.com/simon987/ngx_http_js_challenge_module/releases)? So users can refer to a specific version while filing issues/requests, and for packaging purposes.
Hello, I added this module to directadmin (Reverse-proxy NGINX + Apache) ``` #!/bin/sh ./configure \ "--user=nginx" \ "--group=nginx" \ "--prefix=/usr" \ "--sbin-path=/usr/sbin" \ "--conf-path=/etc/nginx/nginx.conf" \ "--pid-path=/var/run/nginx.pid" \ "--http-log-path=/var/log/nginx/access_log" \ "--error-log-path=/var/log/nginx/error_log"...