Manual:$wgDisableQueryPages/en

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