Class: HomographicSpoofing::Detector::Rule::Idn::InvisibleCharacters

Inherits:
Base
  • Object
show all
Defined in:
lib/homographic_spoofing/detector/rule/idn/invisible_characters.rb

Overview

  1. of Google Chrome IDN policy

Instance Method Summary collapse

Instance Method Details

#attack_detected?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/homographic_spoofing/detector/rule/idn/invisible_characters.rb', line 3

def attack_detected?
  INVISIBLE_CHARACTERS_REGEXP.match?(label)
end