THE AFL has banned a patron from all AFL and AFLW matches for five years after they sent a highly inappropriate and threatening text message to the MCG anti-social behaviour hotline during last Friday's night Carlton vs Collingwood match.

The MCG has also issued a separate five-year ban for all events at the venue.

"The anti-social hotline at venues is designed to ensure everyone attending the match can do so in a safe and inclusive manner, and the majority of times this service is used appropriately," Head of AFL Integrity and Security Tony Keane said.

"We understand there is passion in the game however the text message in question sent to the MCG hotline on Friday crossed the line. Regardless of the intent, no coach, player, official, staff member or fan deserves to be threatened in such a way, and now that patron has lost the privilege of attending the footy."