Libya
The country's criminal code prohibits all sexual activity outside of a lawful marriage. Under Article 410 of the Libyan Penal Code, Private homosexual acts between consenting adults are illegal. Female homosexuality would also appear to be illegal, as is making any sort of public acknowledgment that a person is gay. In 2010 a French asylum case involved a Libyan girl who sought asylum after being jailed, raped and then returned to her family for a forced marriage after she made a public statement online that she was gay:
http://archive.globalgayz.com/africa/libya/gay-libya-news-and-reports-2/#article4
Legislation
Male to male relationships: Illegal
Punishments for male to male relationships: Yes
Female to female relationships: Illegal
Same sex marriage or civil union: No
Discrimination protection
NRHI inclusive of sexual orientation: No
Constitution protection: No
Employment protection: No
Hate crimes law: No
Incitement: No
Other protection: No
LGBT organizations/networks
None found as of December 2017.