Great library!
It'd be great to see an option for defanging that would defang in a lesser intrusive manner. Potentially with the option to prioritise towards the left or right side. This may assist in the readability of some of the output strings (but maybe slightly more risky, hence making it optional!).
For example:
www.example.com = www[.]example[.]com (current)
www.example[.]com (minimum flag used, prioritise right by default)
www[.]example.com (minimum flag used, prioritise left)
http://www.google.com/this/is/bad.html = hXXp://www[.]google[.]com/this/is/bad[.]html (current)
http://www.google.com/this/is/bad.html = hXXp://www.google[.]com/this/is/bad[.]html (minimum flag used, prioritise right by default)
http://www.google.com/this/is/bad.html = hXXp://www[.]google.com/this/is/bad[.]html (minimum flag used, prioritise left)
192.168.4.2 = 192[.]168[.]4.2 (current)
192.168.4[.]2 (minimum flag used, prioritise right by default)
192[.]168.4.2 (minimum flag used, prioritise left)
Great library!
It'd be great to see an option for defanging that would defang in a lesser intrusive manner. Potentially with the option to prioritise towards the left or right side. This may assist in the readability of some of the output strings (but maybe slightly more risky, hence making it optional!).
For example:
www.example.com = www[.]example[.]com (current)
www.example[.]com (minimum flag used, prioritise right by default)
www[.]example.com (minimum flag used, prioritise left)
http://www.google.com/this/is/bad.html = hXXp://www[.]google[.]com/this/is/bad[.]html (current)
http://www.google.com/this/is/bad.html = hXXp://www.google[.]com/this/is/bad[.]html (minimum flag used, prioritise right by default)
http://www.google.com/this/is/bad.html = hXXp://www[.]google.com/this/is/bad[.]html (minimum flag used, prioritise left)
192.168.4.2 = 192[.]168[.]4.2 (current)
192.168.4[.]2 (minimum flag used, prioritise right by default)
192[.]168.4.2 (minimum flag used, prioritise left)