Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Gregory_Link
Contributor

Regex for TLD Blocks

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\/

1 Reply
Alastair_Haddix
Participant

So far I have found this to be more effective. 

(?:[a-zA-Z]*\.)+(TLD)[/|\s]

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 24 Feb 2026 @ 04:30 PM (EST)

    Las Vegas: MDR/XMDR

    Wed 25 Feb 2026 @ 04:30 PM (MST)

    Tempe, AZ: MDR/MXDR

    Wed 11 Mar 2026 @ 12:00 PM (MDT)

    CheckMates Live Denver!
    CheckMates Events