India’s Department of Telecommunications has approved net neutrality rules that ban blocking, throttling, and zero-rating internet data, with some exceptions. The framework, published last year as a recommendation from the Telecom Regulatory Authority of India (TRAI), is the culmination of a years-long campaign for net neutrality in India.

As The Wire reports, the new rules prevent “any form of discrimination or interference” with data, including “blocking, degrading, slowing down, or granting preferential speeds or treatment to any content.” But they don’t apply to “critical IoT services” or “specialized services,” including autonomous vehicles and remote surgery operations — which The Wire says TRAI head R.S. Sharma compares to ambulances that can legally disobey traffic rules, or in this case, get prioritized status to maintain service quality. Internet service providers will need to agree to the deal when they sign license agreements with the Department of Telecommunications. ISPs that violate the rules could have their licenses canceled.

TRAI kicked off its rulemaking process in early 2015 when it called for public comment on possible internet regulations. Activists rallied internet users in favor of net neutrality rules, especially after two companies announced zero-rating plans that critics feared would give wealthy American companies an unfair advantage over local startups. One of these was Facebook’s or Free Basics project, which offered free access to certain internet services in developing nations. India banned Free Basics in 2016, along with similar zero-rating programs.