Human Rights Watch has said Kenya is one of at least eight countries that have used forced anal exams on suspected homosexuals since 2010, along with Cameroon, Egypt, Lebanon, Tunisia, Turkmenistan, Uganda and Zambia.
The new ruling undoubtedly will have an impact on those countries, Gitari said.
In Kenya, gay sex faces a penalty of up to 14 years in prison.
The lesbian, gay, bisexual and transgender communities in the East African nation have complained of harassment, which in some cases is violent. Gay people often are ostracised by families and communities and discriminated against when it comes to renting property and finding jobs.
Kenya's High Court last month began hearing arguments in a case that challenges parts of the penal code seen as targeting the LGBT community. The National Gay and Lesbian Human Rights Commission argues that the sections are in breach of the constitution and deny basic rights by criminalizing consensual same-sex relations between adults.
- AP