Manual:Img auth.php

Description
Script that serves images only to logged in users. To configure the wiki to use that script, see 1>Special:MyLanguage/Manual:Image authorization#How Does "img_auth.php" Work?|Manual:Image authorization#How Does "img_auth.php" Work?.

Example
https://www.mediawiki.org/w/img_auth.php/a/a9/Example.jpg