NEW YORK — Airbnb says it will block and cancel all reservations in the Washington, D.C., area during the week of the presidential inauguration.

The decision, announced Wednesday, was in response to various local, state and federal officials asking people not to travel to D.C. It came two days after it said it was reviewing reservations in the area ahead of the inauguration and said it will bar any guests associated with hate groups or violent activity.

The San Francisco-based home sharing company said guests whose reservations were canceled will be refunded in full. It will also reimburse hosts — at Airbnb’s expense — the money they would have earned from those canceled reservations. It also said reservations at HotelTonight, a service owned by Airbnb that handles last-minute deals at top-rated hotels, will also be canceled.

“We are continuing our work to ensure hate group members are not part of the Airbnb community,” the company said in a corporate blog.

Airbnb said it had learned through media or law enforcement sources the names of individuals confirmed to have been responsible for the criminal activity at the U.S. Capitol. And it’s investigated whether the named individuals have an account on Airbnb. Through this work, it said it has identified numerous individuals who are associated with known hate groups or otherwise involved in the criminal activity at the Capitol, and they have been banned from Airbnb’s platform.

Airbnb has had a policy of removing guests who are confirmed to be members of hate groups since 2017, when it blocked guests who were headed to a white supremacist rally in Charlottesville, Virginia.

The company also said Monday it won’t give political donations to the Republicans who voted against certifying the results of the election last week. Airbnb joined Marriott, AT&T and others in taking that stand.

Airbnb’s political action committee donated $866,519 to candidates and political parties in the 2020 election cycle, according to Open Secrets, which monitors campaign finance donations. Democratic President-elect Joe Biden was the biggest recipient of Airbnb donations.