The Shooters Fishers and Farmers Party leader Robert Borsak said the party moved amendments to the bill that were supported and passed by parliament.
“Our amendments have defined agricultural activities to include any business that uses animal products; be that a farm, a butcher, or a tannery,” Mr Borsak said.
“They are all subject to vegan terrorism and should be protected.”
The party campaigned for 10 years to have the bill passed, to "protect agricultural businesses from vegan terrorism".
“Make no mistake, these people are elitists, and they will force their ideology from the city, often violently, where they can,” Mr Borsak said.
“They are a criminal gang masquerading as a cultural movement and now the law will deal them.”
Animal activists released the Aussie Farms map in January, which publicly listed farms and abattoirs in the name of greater transparency.
The map raised concerns, with farmers seeking to be granted greater protections.
NSW Farmers chief executive Pete Arkle said the group has had a loud voice on the issue over many years.
“Farms are a home and farms are a business, and just like residential homes and businesses, farmers want some laws imposed on people who enter their property without any notification,” Mr Arkle said.“We are disappointed that the opposition continued to question the intent of the Right to Farm Bill and that the Greens did not support it.”