Section 17B. Except as otherwise prohibited under section 2703 of Title 18 of the United States Code, whenever the attorney general or a district attorney has reasonable grounds to believe that records in the possession of: (i) a common carrier subject to the jurisdiction of the department of telecommunications and cable, as provided in paragraph (d) of section 12 of chapter 159; or (ii) a provider of electronic communication service as defined in subparagraph (15) of section 2510 of Title 18 of the United States Code; or (iii) a provider of remote computing service as defined in section 2711 of Title 18 of the United States Code, are relevant and material to an ongoing criminal investigation, the attorney general or district attorney may issue an administrative subpoena demanding all such records in the possession of such common carrier or service, and such records shall be delivered to the attorney general or district attorney within 14 days of receipt of the subpoena. No such common carrier or service, or employee thereof, shall be civilly or criminally responsible for furnishing any records or information in compliance with such demand. Nothing in this section shall limit the right of the attorney general or a district attorney to otherwise obtain records from such a common carrier or service pursuant to a search warrant, a court order or a grand jury or trial subpoena.
No subpoena issued pursuant to this section shall demand records that disclose the content of electronic communications or subscriber account records disclosing internet locations which have been accessed including, but not limited to, websites, chat channels and newsgroups, but excluding servers used to initially access the internet. No recipient of a subpoena issued pursuant to this section shall provide any such content or records accessed, in response to such subpoena.