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

    CheckMates Events