Translations:Manual:$wgEnableImageWhitelist/7/en

The following code snippets show how to enable and disable this feature, respectively.