mirror of
https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS.git
synced 2023-12-14 04:31:21 +00:00
Update anti_ddos_challenge.lua
Remove Search Engines from the Browsers Javascript Checking (This will allow search engines to crawl still like Google because they can execute Javascript)
This commit is contained in:
@ -107,7 +107,7 @@ if(!window.webdriver){/*selenium*/
|
||||
if(!window.domAutomation || !window.domAutomationController){/*chromium based automation driver*/
|
||||
if(!window.document.documentElement.getAttribute("webdriver")){
|
||||
/*if(navigator.userAgent){*/
|
||||
if(!/bot|curl|kodi|xbmc|wget|urllib|python|winhttp|httrack|alexa|ia_archiver|facebook|twitter|linkedin|pingdom|google|baidu|bing|msn|duckduckgo|teoma|slurp|yahoo|yandex/i.test(navigator.userAgent)){
|
||||
if(!/bot|curl|kodi|xbmc|wget|urllib|python|winhttp|httrack|alexa|ia_archiver|facebook|twitter|linkedin|pingdom/i.test(navigator.userAgent)){
|
||||
/*if(navigator.cookieEnabled){*/
|
||||
/*if(document.cookie.match(/^(?:.*;)?\s*[0-9a-f]{32}\s*=\s*([^;]+)(?:.*)?$/)){*//*HttpOnly Cookie flags prevent this*/
|
||||
]]
|
||||
|
Reference in New Issue
Block a user