Is having a girlfriend allowed in Islam?

Having a girlfriend or a boyfriend, or any type of relationship before marriage is not allowed in Islam.