When Torbutton is installed, several ports are added to the 'network.security.ports.banned' preference setting. When connections are attempted to these ports, an exception is generated that denotes that port access is not allowed.