The University of California, Berkeley, is requiring people on campus who are not protected against the flu to wear masks.

"Masks are required during flu season if not vaccinated for flu," the school’s website says under its mask requirements page.

The guidelines also strongly recommend people wear masks indoors regardless of COVID-19 vaccination status, and that "masks are optional for everyone" if they are outdoors.

The requirements for people who have not gotten the flu shot set off a firestorm of criticisms on social media.

PHILADELPHIA SCHOOL DISTRICT MANDATES MASKS FOR FIRST 10 DAYS OF SCHOOL YEAR, PRE-K MUST MASK UP ALL YEAR

Photo shows students at UC Berkeley wearing masks while walking on the school's campus in 2020

A student wears a mask while on the UC Berkeley campus on March 4, 2020, in Berkeley, California. (Gabrielle Lurie/The San Francisco Chronicle via Getty Images)

"At Berkeley anyone who isn’t vaccinated for the flu must wear a mask, by executive order from the university president. This is where we are," author Jennifer Sey tweeted Monday.

GEORGETOWN UNIVERSITY MANDATES MASKS FOR STUDENTS DURING IN-CLASS INSTRUCTION

US COLLEGES REINSTATE MASK REQUIREMENTS, BUT EXPERT SAYS ‘THE TIME FOR MASK MANDATES IS GONE’

Berkeley’s communication’s team did not immediately respond to Fox News Digital’s request for comment Wednesday. 

Photo shows piles of face masks, including surgical masks and N95 masks

N95 masks and medical surgical masks (iStock)

The news comes as other universities across the country have continued enforcing indoor mask requirements over the coronavirus in settings such as classrooms, including at George Washington University, NYU, University of Hawaii and others.

CLICK HERE TO GET THE FOX NEWS APP

In Philadelphia, the public school district announced earlier this month that all students must mask up for the first 10 days of school. Students and staff at the district's pre-K program will be required to wear a mask for the entire school year.