(4) Exclusions Liability under this subsection shall not extend to—
(A) a service by wire or radio that provides the capability to transmit data to and receive data from all, or substantially all, internet endpoints, including any capabilities that are incidental to enable the operation of the communications service of a provider of online services or network access, or the operator of facilities for such service;
(B) a provider of an online service described in paragraph (3)(A)(ii) alleged to have undertaken an activity described in paragraph (2) if—
(i) it is not technologically or practically feasible for that provider to disable access to the offending material, or disable the reference or link to that material, at the specific location identified in the applicable notification sent under subsection (d)(3); or
(ii) disabling access to the offending material is prohibited by law;
(C) a nonprofit library or archives—
(i) that is eligible for the limitations on exclusive rights under section 108 of title 17, United States Code;
(ii) the collections of which are—
(I) open to the public; or
(II) available not only to researchers affiliated with the library or archives, or with the institution of which the library or archives is a part, but also to other persons doing research in a specialized field;
(iii) that has a public service mission;
(iv) the trained staff or volunteers of which provide professional services normally associated with libraries and archives; and
(v) the collections of which are composed of lawfully acquired or licensed materials that are made available consistent with the requirements of title 17, United States Code;
(D) an accredited nonprofit educational institution with respect to an activity undertaken without any purpose of direct or indirect commercial advantage;
(E) an employee of an institution described in subparagraph (C) or (D) acting within the scope of the employment of that individual;
(F) any other person solely with respect to providing online or network access services to an institution described in subparagraph (C) or (D) in the course of providing those services to that institution; or
(G) an individual or entity that is not an online service, if, upon obtaining actual knowledge of an activity described in paragraph (2), the individual or entity acts as soon as technologically and practically feasible to remove or disable access to the applicable material.