• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows [URGENT] Getting pinged/dosed/ddosed.

you got a ddos script? (dno if it works)

Sry mate i thought it was something else lol

well it looks like this
Lua:
  ------ DDoS protection
------ By Mock
------ Require Lua socket
local conf = {
      check_website1 = 'http://www.google.com/', ---- First website
      check_website2 = 'http://pt.wikipedia.org/', ---- Second website
      ifoff = { --- If this 2 websites was offline
            kickall = true, --- Kick all players?
            save = true, --- Save server?
            closeserver = true, --- Exit server?
      }
}
--[[
This script every X seconds will check if google is online,
if google is off it will check wikipedia, if wikipedia is
off too is because your net is verry overloaded (DDoS attack)
or your connection is down. If all this is off this script
will kick all players, save server and close server.
]]
function onThink(interval, lastExecution)
    assert(socket,'Please install socket!')
    assert(socket.http,'Please install socket.http')
    local re,info,kind = pcall(socket.http.request,conf.check_website1)
    if not info or re == false then
       print('::Google is off?\a')
       if conf.check_website2 and conf.check_website2 ~= '' and conf.check_website2:len() > 6 then
          local re,info,kind = pcall(socket.http.request,conf.check_website2)
          if not info or re == false then
             print('::We are under attack or you connection is offline!\a\a')
             if conf.ifoff.kickall == true then
                for i,b in pairs(getOnlinePlayers()) do
                    doRemoveCreature(b)
                end
             end
             if conf.ifoff.save == true then
             saveServer()
             end
             if conf.ifoff.closeserver == true then
             os.sleep(2)
             os.exit()
             end
          end
       end
    end
        return TRUE
end

doesnt rly protect you against ddos but anyway.
 
you got a ddos script? (dno if it works)

Sry mate i thought it was something else lol

well it looks like this
Lua:
  ------ DDoS protection
------ By Mock
------ Require Lua socket
local conf = {
      check_website1 = 'http://www.google.com/', ---- First website
      check_website2 = 'http://pt.wikipedia.org/', ---- Second website
      ifoff = { --- If this 2 websites was offline
            kickall = true, --- Kick all players?
            save = true, --- Save server?
            closeserver = true, --- Exit server?
      }
}
--[[
This script every X seconds will check if google is online,
if google is off it will check wikipedia, if wikipedia is
off too is because your net is verry overloaded (DDoS attack)
or your connection is down. If all this is off this script
will kick all players, save server and close server.
]]
function onThink(interval, lastExecution)
    assert(socket,'Please install socket!')
    assert(socket.http,'Please install socket.http')
    local re,info,kind = pcall(socket.http.request,conf.check_website1)
    if not info or re == false then
       print('::Google is off?\a')
       if conf.check_website2 and conf.check_website2 ~= '' and conf.check_website2:len() > 6 then
          local re,info,kind = pcall(socket.http.request,conf.check_website2)
          if not info or re == false then
             print('::We are under attack or you connection is offline!\a\a')
             if conf.ifoff.kickall == true then
                for i,b in pairs(getOnlinePlayers()) do
                    doRemoveCreature(b)
                end
             end
             if conf.ifoff.save == true then
             saveServer()
             end
             if conf.ifoff.closeserver == true then
             os.sleep(2)
             os.exit()
             end
          end
       end
    end
        return TRUE
end

doesnt rly protect you against ddos but anyway.
no lol..
 
Fix a properly Linux box and you should be able to restrict your connection easier. However if your net is bad theres not much to do.
 
Fix a properly Linux box and you should be able to restrict your connection easier. However if your net is bad theres not much to do.
My net isn't bad but Maybe his is faster.. And no, I do not wish to switch to linux, there must be some way to block his IP ?
Why the need of talking in third person? ;-]!
word..
 
Back
Top