From 113f1dacae67934b994efa16813dc456a426cebc Mon Sep 17 00:00:00 2001 From: C0nw0nk Date: Fri, 31 Jan 2020 20:13:24 +0000 Subject: [PATCH] Update anti_ddos_challenge.lua MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For services behind Cloudflares proxy service ensure our javascript runs without "Rocket Loader". https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-specific-JavaScripts- And for Tor users this seems to be an error they will see with it that should fix it. Making the Script elements run independently from Cloudflares script. Request to access cookie or storage on “https://ajax.cloudflare.com/cdn-cgi/scripts/*/cloudflare-static/rocket-loader.min.js” was blocked because we are blocking all third-party storage access requests and content blocking is enabled --- lua/anti_ddos_challenge.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lua/anti_ddos_challenge.lua b/lua/anti_ddos_challenge.lua index e3b7845..404460c 100644 --- a/lua/anti_ddos_challenge.lua +++ b/lua/anti_ddos_challenge.lua @@ -327,13 +327,13 @@ local function encrypt_javascript(string1, type, defer_async, num_encrypt, encry if type == 1 or type == nil then --No encryption if defer_async == "0" or defer_async == nil then --Browser default loading / execution order - output = "" + output = "" end if defer_async == "1" then --Defer - output = "" + output = "" end if defer_async == "2" then --Async - output = "" + output = "" end end @@ -349,13 +349,13 @@ local function encrypt_javascript(string1, type, defer_async, num_encrypt, encry end if defer_async == "0" or defer_async == nil then --Browser default loading / execution order - output = "" + output = "" end if defer_async == "1" then --Defer - output = "" + output = "" end if defer_async == "2" then --Async - output = "" + output = "" end end @@ -392,7 +392,7 @@ local function encrypt_javascript(string1, type, defer_async, num_encrypt, encry end --https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent - output = "" + output = "" end if type == 4 then --Base64 javascript decode @@ -405,13 +405,13 @@ local function encrypt_javascript(string1, type, defer_async, num_encrypt, encry end if defer_async == "0" or defer_async == nil then --Browser default loading / execution order - output = "" + output = "" end if defer_async == "1" then --Defer - output = "" + output = "" end if defer_async == "2" then --Defer - output = "" + output = "" end end @@ -647,7 +647,7 @@ local javascript_anti_ddos = [[ encrypt/obfuscate the javascript output ]] if encrypt_javascript_output == 1 then --No encryption/Obfuscation of Javascript so show Javascript in plain text -javascript_anti_ddos = [[]] else --some form of obfuscation has been specified so obfuscate the javascript output