Manual:$wgDisableQueryPages

Details
Disable all query pages if   is on, not just some.