Commit Graph

12 Commits

Author SHA1 Message Date
2d9a6da90d Update anti_ddos_challenge.lua
Remove un-needed Javascript code that causes browser issues.
2019-09-12 18:07:17 +01:00
a32a819b73 Update anti_ddos_challenge.lua
Fix Nginx Lua Bug with ngx.header["Set-Cookie"] function for some reason it only allows one instance of this header to be defined in a script. So to fix the issue I define the header once and only once in the entire script right at the end and set a variable that can be dynamic in setting multiple cookies.
2019-09-12 18:03:00 +01:00
447534b611 Update anti_ddos_challenge.lua
Add cors headers and include XMLHTTPREQUEST with credentials tag and remove domain tag from set-cookie to fix issue with Google Chrome. Still broken in Microsoft Edge !?
2019-08-28 01:17:53 +01:00
f2133a8307 Update anti_ddos_challenge.lua
Fix for set-cookie works in Firefox browser now Chrome, Microsoft edge still don't seem to work...!?
2019-08-28 00:18:59 +01:00
a7d388d02a Update anti_ddos_challenge.lua
Added Feature built in my method to encrypt and obfuscate Javascript outputs. (I am very proud of this!)

Bug fix: incase certain browsers lack in permissions to set cookies with javascript on the initital header request we will give them their cookie they still need javascript enabled to solve the authentication puzzle that will always be mandatory!

Added X-Requested-* headers for the next feature i am building in
2019-08-27 18:07:49 +01:00
124381ad79 Update anti_ddos_challenge.lua
Move current time variable out of configuration area.

Create currentdate variable to stop calling os.date() and os.time() multiple un-needed times.

Fix bug now the auth page only shows when the expire_time config value is set and around the time before if you had set a time greater than one day every 24 hours you would recieve the auth page even if your cookies are valid this expire_time checks solves that problem.
2019-08-26 21:29:25 +01:00
2e2a5e58a5 Update anti_ddos_challenge.lua
Add new security feature to make the cookies we set encrypted, unpredictable, dynamic and unique to each user/client to increase our security from content scrappers bots leechers etc. Where as before they could monitor static cookie names this prevents that.
2019-08-26 19:05:38 +01:00
655b82f49c Update anti_ddos_challenge.lua
Improve security on header making it unique to each individual client/user that visits the website.
2019-08-25 23:50:50 +01:00
1596b5c177 Update anti_ddos_challenge.lua
Add new security feature to make the header we sent our Javascript answer from the browser over unpredictable and dynamic to increase our security from content scrappers bots leechers etc.
2019-08-25 22:47:17 +01:00
f51662eda7 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)
2019-08-25 21:22:49 +01:00
cabdbaa093 Update anti_ddos_challenge.lua
Fix expire_time description to show correct default time of 1 day.

Fix cookie bug when Javascript was setting a cookie it was setting a cookie of 'now' instead of the set config of expire_time into the future when the cookie should expire.

Added the challenge cookie to the headers set by grant_access function to update the cookie set by Javascript since the time stamp on the cookie would be out of sync with the other cookies otherwise this was all cookies will be updated and set/kept with the same time stamps.
2019-08-25 21:00:22 +01:00
72cce0223d Create anti_ddos_challenge.lua
For those who love my script feel free to drop me a thank you! :)
2019-08-22 13:18:53 +01:00