What is URL defanging?
Security teams, incident responders and anyone who writes about phishing or malware have a recurring problem: the report has to contain the dangerous address, but a clickable address in an e-mail, a chat or a ticket invites someone to open it. Defanging is the habit of altering an indicator just enough that it can no longer be clicked or auto-linked, while a person can still read it and restore it. https://google.com/example.exe becomes hxxps://google[.]com/example[.]exe. Refanging is the opposite step, done when an analyst needs the real value, for example to block it or look it up.
This tool does both. It finds URLs, domains, IPv4 addresses and e-mail addresses inside running text, so you can paste a whole report, a log or a mail and only the indicators are changed while every other word stays. It also has a list mode for when each line of the box is one indicator, which works for any domain, whatever its ending. For defanging you choose the style: hxxp or hXXp for the scheme, [.], (.) or [dot] for the dot, [at], (at) or [@] for the at sign, and whether to hide the :// too. Refang understands all of those and more, such as fxp, [:] and {.}.
The rules follow the common practice of the open-source tools defang and ioc-fanger, and the output of this page is checked against ioc-fanger for the same input. Everything runs in your browser; the text you paste is never sent anywhere.
How to defang or refang text
- Open the page. It starts with a short incident note that contains a phishing URL, a payload address with an IP, an e-mail and a domain.
- Leave "Defang" selected and read the result on the right. The URL, the IP, the e-mail and the domain are changed; the sentences around them are not.
- Pick the style you need in the options bar. For a report that goes into a ticket system, the default
hxxpand[.]is the most widely recognized. - Use Copy, or Download for a text file.
- To go back, switch to "Refang", paste the defanged text and copy the restored addresses. "Continue with" opens the result in the URL parser.
Examples
A URL
https://google.com/example.exe
hxxps://google[.]com/example[.]exeThe scheme is changed and every dot becomes [.], including the one in the file name. Tick "Only dots of the host" if you want the path left alone.
An IP address and an e-mail
127.0.0.1 -> 127[.]0[.]0[.]1
ana@fake-bank.example.net -> ana[at]fake-bank[.]example[.]netThe at sign is replaced and the dots of the domain are hidden.
A list of domains
Switch to "One per line" and paste evil.zip, payload.example.org and 10.0.0.5. Every line is defanged, even endings such as .zip that the running-text mode skips because they look like file names.
A report
In running text, a sentence such as "The payload is hosted at http://203.0.113.45:8080/update.exe." comes out with the address defanged and the final period kept.
Common mistakes
- Sharing a defanged link and expecting it to work. That is the point. Refang it before opening it, and only in a safe environment.
- Defanging only the scheme. Changing
httptohxxpalone leaves many chat apps and mail clients able to link the domain. Hide the dots too. - Expecting every word with a dot to be a domain. In running text only common domain endings are recognized, so file names such as
readme.mdstay as they are. Use list mode for unusual endings. - Forgetting IPv6. IPv6 addresses are not changed by this tool, because they have no dots to hide.
- Defanging twice. Text that is already defanged is left as it is, so nothing turns into
[[.]]. - Trusting a defanged URL as safe. It is only inert. The site behind it is as dangerous as before.
Frequently asked questions
Is defanging the same as encoding?
No. Encoding, such as URL encoding, keeps a link working. Defanging deliberately breaks it so that it cannot be clicked.
Which tools use hxxp and [.]?
Threat intelligence reports, SIEM tickets, abuse mailboxes and malware write-ups use it widely. Open-source libraries such as defang and ioc-fanger use the same conventions.
Can I check what a URL contains before refanging it?
Yes. After refanging, open the result in the URL parser to see the host, path and parameters as separate fields, without visiting the site. For links wrapped by a mail security gateway, use the safelink decoder.
Does it contact the sites?
No. It only changes text in your browser. Nothing is requested, resolved or stored.
Why did a domain in my text not change?
Its ending may not be in the list of common endings. Switch to "One per line" and put the domain on its own line.