Manual:$wgExportAllowHistory/en

Details
If set to false, disables the full-history option on Special:Export.