Gregory Link

Regex for TLD Blocks

Discussion created by Gregory Link on May 17, 2018

I've been working for a little while to get a regex crafted that works to block identified Top Level Domains via the App/URL blade and so wanted to share my results.  This could also easily be modified via a NOT and optional list of domains that you want to allow instead of domains you want to block.  

 

Just replace TLD with a domain you want to match.

^[^:\/]+:\/?\/?[^\/]+\.TLD\/

Outcomes