Under Taliban rule , girls were banned from school and were only allowed to leave the house accompanied by a male relative .