Method: WHMCS::Misc.add_banned_ip

Defined in:
lib/whmcs/misc.rb

.add_banned_ip(params = {}) ⇒ Object

Add Banned IP

Parameters:

  • :ip - IP address to ban

Optional attributes:

  • :reason - reason for ban

  • :days - number of days to ban for. If not submitted defaults to 7 (not required)

  • :expires - in YYYY-MM-DD HH:II:SS format eg: 2011-06-06 01:12:34 (optional in place of “days”)

See:

docs.whmcs.com/API:Add_Banned_IP



240
241
242
243
# File 'lib/whmcs/misc.rb', line 240

def self.add_banned_ip(params = {})
	params.merge!(:action => 'addbannedip')
	send_request(params)
end