DEV Community

Discussion on: Homographs, Attack!

Collapse
 
billiegoose profile image
Billie Hilton • Edited

Implement our own display algorithms. This is what we ended up doing at Kickstarter. We used Google's open-source algorithm and show a warning if it's possible that the url shown on the page is a homograph for another url.

If you published this as an npm package (e.g. sanitizeHomograph(url)) then all of us could use it to sanitize URLs we display on profile pages.

Collapse
 
logan profile image
Logan McDonald

sorry this took a while! github.com/kickstarter/ruby-homogr...

Collapse
 
logan profile image
Logan McDonald

Kickstarter is about to publish the ruby code as a gem! Would be down to do in js as well 😊