People protest on March 24 outside the North Carolina Executive Mansion in Raleigh over a new law that prevents cities and counties from passing their own anti-discrimination rules. (Emery P. Dalesio/AP)

The British Foreign Office has released an advisory warning travelers to be aware of controversial new laws in North Carolina and Mississippi before visiting the United States.

The travel advisory update — directed to members of the country's lesbian, gay, bisexual and transgender community — was posted on the Foreign Office's website Tuesday.

“The U.S. is an extremely diverse society and attitudes towards LGBT people differ hugely across the country,” the advisory says. “LGBT travelers may be affected by legislation passed recently in the states of North Carolina and Mississippi. Before traveling please read our general travel advice for the LGBT community.”

In North Carolina, HB 2 — the controversial law passed last month — limits LGBT protections and forces transgender people to use bathrooms corresponding only with the gender on their birth certificate. Mississippi's law, passed earlier this month, allows businesses to refuse services to gay couples based on religious objections.

The new legislation has led to boycotts and backlash in the business community. Bruce Springsteen, Ringo Starr and Pearl Jam, among others, have canceled appearances in North Carolina as a show of opposition to the new law, and PayPal said it is abandoning plans to expand into Charlotte in response to the legislation.

Some cities and states — including San Francisco, the District of Columbia and the state of New York — have also banned non-essential government travel to North Carolina.

A transgender woman gathers likeminded North Carolinians in Charlotte to protest the state's controversial new law that restricts transgender people from using the bathroom that corresponds with their chosen gender. (Whitney Shefte/The Washington Post)

The British government advisory doesn't include a political message, but it does refer prospective travelers looking for more information about LGBT issues in the United States to the website of the Human Rights Campaign, a group that has voiced strong opposition to North Carolina's new legislation.

Among the advice for LGBT Brits traveling abroad: "Exercise discretion" in rural areas and avoid "excessive physical shows of affection" in public.

"Some hotels," the government also warns, "especially in rural areas, won’t accept bookings from same sex couples – check before you go."

The Foreign Office includes a link to a world map produced by the International Lesbian, Gay, Bisexual, Trans and Intersex Association that highlights countries with legislation targeting LGBT people.

Among the countries highlighted in red on the map are Turkmenistan, Pakistan, Nicaragua, as well as much of northern Africa and the Middle East.

Read more:

Here are the 10 countries where homosexuality may be punished by death

Chinese textbooks are wildly homophobic. One student is fighting back.

Germany confronts its growing right-wing movement in court