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:
parent
cabdbaa093
commit
f51662eda7
|
@ -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*/
|
||||
]]
|
||||
|
|
Loading…
Reference in New Issue