MediaWiki:External image whitelist

m
(Add new CDN and clean up)
Line 7: Line 7:
#Example Used on [[Manual:$wgAllowExternalImages]] to show an example, so it'd be nice if said example worked
#Example Used on [[Manual:$wgAllowExternalImages]] to show an example, so it'd be nice if said example worked
-
 
-
#Example: ^https?://en\.wikipedia\.org/upload/b/bc/Wiki\.png$
 
-
 
-
# Example Specific JPG from Galaxy Legion Site
 
-
 
-
# Example: ^https?://galaxylegion\.erismedia\.netdna-cdn\.com/galaxylegion/images/missions/tonm.jpg
 
# Adding All Image Files on Official Galaxy Legion Site:
# Adding All Image Files on Official Galaxy Legion Site:
-
#^https?://galaxylegion\.erismedia\.netdna-cdn\.com\/([^?#]*)\.(?:jpg|gif|png|bmp)$
+
#^https:\/\/galaxylegionfb\.com\/images\/(?:.*)\.(?:jpg|png|gif)$
 +
#^https:\/\/galaxylegionfb\.com\/images\/(?:.*)\.(?:jpg|png|gif)$
 +
#^https:\/\/galaxylegion1-1faae\.kxcdn\.com\/images\/(?:.*)\.(?:jpg|png|gif)$
-
#^https?://galaxylegion\.erismedia\.netdna-cdn\.com.*jpg$
+
#Put all regex fragments above this line. Leave this line exactly as it is</pre>
-
#^https?://galaxylegion\.erismedia\.netdna-cdn\.com.*gif$
+
-
#^https?://galaxylegion\.erismedia\.netdna-cdn\.com.*bmp$
+
-
#^https?://galaxylegion\.erismedia\.netdna-cdn\.com.*png$
+
-
#^https?://h6w2n3n7\.stackpathcdn\.com\/images\/([^?#]*)\.(?:jpg|gif|png|bmp)$
 
-
 
-
#^https?://h6w2n3n7\.stackpathcdn\.com\/images\/*jpg$
 
-
#^https?://h6w2n3n7\.stackpathcdn\.com\/images\/*gif$
 
-
#^https?://h6w2n3n7\.stackpathcdn\.com\/images\/*bmp$
 
-
#^https?://h6w2n3n7\.stackpathcdn\.com\/images\/*png$
 
-
 
-
^https?://h6w2n3n7\.stackpathcdn\.com.*jpg$
 
-
^https?://h6w2n3n7\.stackpathcdn\.com.*gif$
 
-
^https?://h6w2n3n7\.stackpathcdn\.com.*bmp$
 
-
^https?://h6w2n3n7\.stackpathcdn\.com.*png$
 
-
 
-
 
-
 
-
#^https?://galaxylegion-erismedia\.netdna-ssl\.com\/([^?#]*)\.(?:jpg|gif|png|bmp)$
 
-
 
-
#^https?://galaxylegion\-erismedia\.netdna-ssl\.com\/([^?#]*)\.(?:jpg|gif|png|bmp)$
 
-
 
-
#^https?://galaxylegion\-erismedia\.netdna-ssl\.com.*jpg$
 
-
#^https?://galaxylegion\-erismedia\.netdna-ssl\.com.*gif$
 
-
#^https?://galaxylegion\-erismedia\.netdna-ssl\.com.*bmp$
 
-
#^https?://galaxylegion\-erismedia\.netdna-ssl\.com.*png$
 
-
 
-
# https://galaxylegionfb.com/galaxylegion/images/icons/credits.png
 
-
 
-
#^https?://galaxylegionfb\.com\/([^?#]*)\.(?:jpg|gif|png|bmp)$
 
-
 
-
#^https?://galaxylegionfb\.com\/.*jpg$
 
-
#^https?://galaxylegionfb\.com\/.*gif$
 
-
#^https?://galaxylegionfb\.com\/.*bmp$
 
-
#^https?://galaxylegionfb\.com\/.*png$
 
-
 
-
#^https?://galaxylegion\.com\/([^?#]*)\.(?:jpg|gif|png|bmp)$
 
-
 
-
#^https?://galaxylegion\.com\/.*jpg$
 
-
#^https?://galaxylegion\.com\/.*gif$
 
-
#^https?://galaxylegion\.com\/.*bmp$
 
-
#^https?://galaxylegion\.com\/.*png$
 
-
 
-
#Put all regex fragments above this line. Leave this line exactly as it is</pre>
 
[[Category:AdminPages]]
[[Category:AdminPages]]

Revision as of 14:43, 22 November 2023

#Leave this line exactly as it is
#Put regular expression fragments (just the part that goes between the //) below
#These will be matched with the URLs of external (hot-linked) images
#Those that match will be displayed as images, otherwise, only a link to the image will be shown
#Lines beginning with # are treated as comments
#This is case-insensitive

#Example Used on [[Manual:$wgAllowExternalImages]] to show an example, so it'd be nice if said example worked

# Adding All Image Files on Official Galaxy Legion Site:

#^https:\/\/galaxylegionfb\.com\/images\/(?:.*)\.(?:jpg|png|gif)$
#^https:\/\/galaxylegionfb\.com\/images\/(?:.*)\.(?:jpg|png|gif)$
#^https:\/\/galaxylegion1-1faae\.kxcdn\.com\/images\/(?:.*)\.(?:jpg|png|gif)$

#Put all regex fragments above this line. Leave this line exactly as it is

Looking for something?

Use the form below to search the wiki:

 

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!