University of Sydney vice-chancellor Michael Spence has lashed out at St Paul's College for its "deep contempt for women" after its warden responded to a sexist Facebook post with a warning to students about the impact of such incidents on their CVs.

The incident began with a post on the college's Facebook page that compared women to "harpooned whales" and signed off with "Happy slaying".

The vice-chancellor of the University of Sydney, Michael Spence.

St Paul's warden Ivan Head responded to the message with his own post on the college's Facebook page on Tuesday night.

His post warned students that "some things may resurface just when you need your best CV to work for you", before adding: "But the primary message driving this has to be 'respect for women: now-always.' "