<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs-old.ckeditor.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=P.Wiaderny</id>
		<title>CKSource Docs - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://docs-old.ckeditor.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=P.Wiaderny"/>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/Special:Contributions/P.Wiaderny"/>
		<updated>2026-04-08T10:29:24Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Resource_Types/Built-in&amp;diff=7438</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/Resource Types/Built-in</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Resource_Types/Built-in&amp;diff=7438"/>
				<updated>2019-09-04T08:46:59Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Built-in_Resource_Types_Description|file=config.xml}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;types&amp;gt;&lt;br /&gt;
	&amp;lt;type name=&amp;quot;Flash&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;url&amp;gt;%BASE_URL%flash/&amp;lt;/url&amp;gt;&lt;br /&gt;
		&amp;lt;directory&amp;gt;%BASE_DIR%flash&amp;lt;/directory&amp;gt;&lt;br /&gt;
		&amp;lt;maxSize&amp;gt;0&amp;lt;/maxSize&amp;gt;&lt;br /&gt;
		&amp;lt;allowedExtensions&amp;gt;swf,flv&amp;lt;/allowedExtensions&amp;gt;&lt;br /&gt;
		&amp;lt;deniedExtensions&amp;gt;&amp;lt;/deniedExtensions&amp;gt;&lt;br /&gt;
	&amp;lt;/type&amp;gt;&lt;br /&gt;
	&amp;lt;type name=&amp;quot;Files&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;url&amp;gt;%BASE_URL%files/&amp;lt;/url&amp;gt;&lt;br /&gt;
		&amp;lt;directory&amp;gt;%BASE_DIR%files&amp;lt;/directory&amp;gt;&lt;br /&gt;
		&amp;lt;maxSize&amp;gt;0&amp;lt;/maxSize&amp;gt;&lt;br /&gt;
		&amp;lt;allowedExtensions&amp;gt;7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,&lt;br /&gt;
		ods,odt,pdf,png,ppt,pptx,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,&lt;br /&gt;
		wmv,xls,xlsx,zip&amp;lt;/allowedExtensions&amp;gt;&lt;br /&gt;
		&amp;lt;deniedExtensions&amp;gt;&amp;lt;/deniedExtensions&amp;gt;&lt;br /&gt;
	&amp;lt;/type&amp;gt;&lt;br /&gt;
	&amp;lt;type name=&amp;quot;Images&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;url&amp;gt;%BASE_URL%images/&amp;lt;/url&amp;gt;&lt;br /&gt;
		&amp;lt;directory&amp;gt;%BASE_DIR%images&amp;lt;/directory&amp;gt;&lt;br /&gt;
		&amp;lt;maxSize&amp;gt;0&amp;lt;/maxSize&amp;gt;&lt;br /&gt;
		&amp;lt;allowedExtensions&amp;gt;bmp,gif,jpeg,jpg,png&amp;lt;/allowedExtensions&amp;gt;&lt;br /&gt;
		&amp;lt;deniedExtensions&amp;gt;&amp;lt;/deniedExtensions&amp;gt;&lt;br /&gt;
	&amp;lt;/type&amp;gt;&lt;br /&gt;
&amp;lt;/types&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Notes}}&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Options|example=&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;maxSize&amp;gt;8M&amp;lt;/maxSize&amp;gt;&amp;lt;/source&amp;gt;|link=CKFinder_2.x/Developers_Guide/Java/Configuration/Quick_Start}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Resource_Types/Built-in&amp;diff=7437</id>
		<title>CKFinder 2.x/Developers Guide/ColdFusion/Configuration/Resource Types/Built-in</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Resource_Types/Built-in&amp;diff=7437"/>
				<updated>2019-09-04T08:46:25Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Built-in_Resource_Types_Description|file=config.cfm}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.resourceType[1] = structNew();&lt;br /&gt;
config.resourceType[1].name = 'Files';&lt;br /&gt;
config.resourceType[1].url = config.baseUrl &amp;amp; 'files';&lt;br /&gt;
config.resourceType[1].directory = config.baseDir &amp;amp; 'files';&lt;br /&gt;
config.resourceType[1].maxSize = 0;&lt;br /&gt;
config.resourceType[1].allowedExtensions = '7z,aiff,asf,avi,bmp,csv,doc,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,&lt;br /&gt;
mpg,ods,odt,pdf,png,ppt,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xml,zip';&lt;br /&gt;
config.resourceType[1].deniedExtensions = '';&lt;br /&gt;
&lt;br /&gt;
config.resourceType[2] = structNew();&lt;br /&gt;
config.resourceType[2].name = 'Images';&lt;br /&gt;
config.resourceType[2].url = config.baseUrl &amp;amp; 'images';&lt;br /&gt;
config.resourceType[2].directory = config.baseDir &amp;amp; 'images';&lt;br /&gt;
config.resourceType[2].maxSize = 0;&lt;br /&gt;
config.resourceType[2].allowedExtensions = 'bmp,gif,jpeg,jpg,png';&lt;br /&gt;
config.resourceType[2].deniedExtensions = '';&lt;br /&gt;
&lt;br /&gt;
config.resourceType[3] = structNew();&lt;br /&gt;
config.resourceType[3].name = 'Flash';&lt;br /&gt;
config.resourceType[3].url = config.baseUrl &amp;amp; 'flash';&lt;br /&gt;
config.resourceType[3].directory = config.baseDir &amp;amp; 'flash';&lt;br /&gt;
config.resourceType[3].maxSize = 0;&lt;br /&gt;
config.resourceType[3].allowedExtensions = 'swf,flv';&lt;br /&gt;
config.resourceType[3].deniedExtensions = '';&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Notes}}&lt;br /&gt;
These resources will be enabled by default if this option:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;config.defaultResourceTypes = '';&amp;lt;/source&amp;gt;&lt;br /&gt;
is left empty. You may specify which resource types you want to use by placing their names separated by a comma.&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Options|example=&amp;lt;source lang=&amp;quot;cfm&amp;quot;&amp;gt;'maxSize' = &amp;quot;8M&amp;quot;,&amp;lt;/source&amp;gt;|link=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Quick_Start}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Resource_Types/Built-in&amp;diff=7436</id>
		<title>CKFinder 2.x/Developers Guide/ASP.NET/Configuration/Resource Types/Built-in</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Resource_Types/Built-in&amp;diff=7436"/>
				<updated>2019-09-04T08:45:41Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Built-in_Resource_Types_Description|file=configuration}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;ResourceType type;&lt;br /&gt;
&lt;br /&gt;
type = ResourceType.Add( &amp;quot;Files&amp;quot; );&lt;br /&gt;
type.Url = BaseUrl + &amp;quot;files/&amp;quot;;&lt;br /&gt;
type.Dir = BaseDir == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : BaseDir + &amp;quot;files/&amp;quot;;&lt;br /&gt;
type.MaxSize = 0;&lt;br /&gt;
type.AllowedExtensions = new string[] { &amp;quot;7z&amp;quot;, &amp;quot;aiff&amp;quot;, &amp;quot;asf&amp;quot;, &amp;quot;avi&amp;quot;, &amp;quot;bmp&amp;quot;, &amp;quot;csv&amp;quot;, &amp;quot;doc&amp;quot;, &amp;quot;fla&amp;quot;, &amp;quot;flv&amp;quot;, &amp;quot;gif&amp;quot;, &amp;quot;gz&amp;quot;, &amp;quot;gzip&amp;quot;,&lt;br /&gt;
&amp;quot;jpeg&amp;quot;, &amp;quot;jpg&amp;quot;, &amp;quot;mid&amp;quot;, &amp;quot;mov&amp;quot;, &amp;quot;mp3&amp;quot;, &amp;quot;mp4&amp;quot;, &amp;quot;mpc&amp;quot;, &amp;quot;mpeg&amp;quot;, &amp;quot;mpg&amp;quot;, &amp;quot;ods&amp;quot;, &amp;quot;odt&amp;quot;, &amp;quot;pdf&amp;quot;, &amp;quot;png&amp;quot;, &amp;quot;ppt&amp;quot;, &amp;quot;qt&amp;quot;, &amp;quot;ram&amp;quot;, &amp;quot;rar&amp;quot;,&lt;br /&gt;
&amp;quot;rm&amp;quot;, &amp;quot;rmi&amp;quot;, &amp;quot;rmvb&amp;quot;, &amp;quot;rtf&amp;quot;, &amp;quot;sdc&amp;quot;, &amp;quot;swf&amp;quot;, &amp;quot;sxc&amp;quot;, &amp;quot;sxw&amp;quot;, &amp;quot;tar&amp;quot;, &amp;quot;tgz&amp;quot;, &amp;quot;tif&amp;quot;, &amp;quot;tiff&amp;quot;, &amp;quot;txt&amp;quot;, &amp;quot;vsd&amp;quot;, &amp;quot;wav&amp;quot;, &amp;quot;wma&amp;quot;, &amp;quot;wmv&amp;quot;,&lt;br /&gt;
&amp;quot;xls&amp;quot;, &amp;quot;zip&amp;quot; };&lt;br /&gt;
type.DeniedExtensions = new string[] { };&lt;br /&gt;
&lt;br /&gt;
type = ResourceType.Add( &amp;quot;Images&amp;quot; );&lt;br /&gt;
type.Url = BaseUrl + &amp;quot;images/&amp;quot;;&lt;br /&gt;
type.Dir = BaseDir == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : BaseDir + &amp;quot;images/&amp;quot;;&lt;br /&gt;
type.MaxSize = 0;&lt;br /&gt;
type.AllowedExtensions = new string[] { &amp;quot;bmp&amp;quot;, &amp;quot;gif&amp;quot;, &amp;quot;jpeg&amp;quot;, &amp;quot;jpg&amp;quot;, &amp;quot;png&amp;quot; };&lt;br /&gt;
type.DeniedExtensions = new string[] { };&lt;br /&gt;
&lt;br /&gt;
type = ResourceType.Add( &amp;quot;Flash&amp;quot; );&lt;br /&gt;
type.Url = BaseUrl + &amp;quot;flash/&amp;quot;;&lt;br /&gt;
type.Dir = BaseDir == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : BaseDir + &amp;quot;flash/&amp;quot;;&lt;br /&gt;
type.MaxSize = 0;&lt;br /&gt;
type.AllowedExtensions = new string[] { &amp;quot;swf&amp;quot;, &amp;quot;flv&amp;quot; };&lt;br /&gt;
type.DeniedExtensions = new string[] { };&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Notes}}&lt;br /&gt;
== Defining DefaultResourceTypes ==&lt;br /&gt;
&lt;br /&gt;
When opening CKFinder, you may specify which Resource Type to make visible by appending '''?type=&amp;amp;lt;TypeName&amp;amp;gt;''' to the CKFinder URL. If instead the type is not passed in the URL, the DefaultResourceTypes setting will be used to identify which Resource Types to load. If blank, all Resource Types will be displayed. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;&lt;br /&gt;
// Show all Resource Types:&lt;br /&gt;
DefaultResourceTypes = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// Show the &amp;quot;Images&amp;quot; and &amp;quot;Files&amp;quot; Resource Types only (separated by comma):&lt;br /&gt;
DefaultResourceTypes = &amp;quot;Images,Files&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Resource Type Options ==&lt;br /&gt;
&lt;br /&gt;
For each resource type you may set several options to precisely configure its behavior.&lt;br /&gt;
&lt;br /&gt;
=== Url and Dir ===&lt;br /&gt;
&lt;br /&gt;
Define the base URL address and the server directory to use to handle and publish the files for this Resource Type. They follow the same rules as defined in the [[CKFinder_2.x/Developers Guide/ASP.NET/Configuration/Quick Start#Base URL and Directory|Quick Start]] section for the '''BaseUrl''' and '''BaseDir''' settings.&lt;br /&gt;
&lt;br /&gt;
=== MaxSize ===&lt;br /&gt;
&lt;br /&gt;
It's the maximum size allowed for uploaded file defined in Bytes.&lt;br /&gt;
&lt;br /&gt;
=== AllowedExtensions and DeniedExtensions ===&lt;br /&gt;
&lt;br /&gt;
You can use this settings to list the file extensions that can be upload to the server.&lt;br /&gt;
&lt;br /&gt;
* '''AllowedExtensions''' - the extensions you wish CKFinder to use. If left empty, only DeniedExtensions is used to check uploads. &amp;lt;code&amp;gt;NO_EXT&amp;lt;/code&amp;gt; value can be used for files without extension.&lt;br /&gt;
* '''DeniedExtensions''' - the extensions you don't wish the CKFinder to use. &amp;lt;code&amp;gt;NO_EXT&amp;lt;/code&amp;gt; value can be used for files without extension.&lt;br /&gt;
&lt;br /&gt;
'''Important: It is recommended''' to always use the AllowedExtensions setting, in favor of DeniedExtensions. If you leave '''AllowedExtensions''' empty and you define an extension in '''DeniedExtensions''', for example &amp;quot;pdf&amp;quot;, it will allow the upload of all the other files except the files with the &amp;quot;pdf&amp;quot; extension. However it isn't a good way to secure your server from unwanted uploads. The best way is to put all of the preferred extensions in '''AllowedExtensions'''. That's the only way to effectively secure your server from hacker's attacks.&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Resource_Types/Built-in&amp;diff=7435</id>
		<title>CKFinder 2.x/Developers Guide/ASP.NET/Configuration/Resource Types/Built-in</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Resource_Types/Built-in&amp;diff=7435"/>
				<updated>2019-09-04T08:45:09Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Built-in_Resource_Types_Description|file=configuration}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;ResourceType type;&lt;br /&gt;
&lt;br /&gt;
type = ResourceType.Add( &amp;quot;Files&amp;quot; );&lt;br /&gt;
type.Url = BaseUrl + &amp;quot;files/&amp;quot;;&lt;br /&gt;
type.Dir = BaseDir == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : BaseDir + &amp;quot;files/&amp;quot;;&lt;br /&gt;
type.MaxSize = 0;&lt;br /&gt;
type.AllowedExtensions = new string[] { &amp;quot;7z&amp;quot;, &amp;quot;aiff&amp;quot;, &amp;quot;asf&amp;quot;, &amp;quot;avi&amp;quot;, &amp;quot;bmp&amp;quot;, &amp;quot;csv&amp;quot;, &amp;quot;doc&amp;quot;, &amp;quot;fla&amp;quot;, &amp;quot;flv&amp;quot;, &amp;quot;gif&amp;quot;, &amp;quot;gz&amp;quot;, &amp;quot;gzip&amp;quot;,&lt;br /&gt;
&amp;quot;jpeg&amp;quot;, &amp;quot;jpg&amp;quot;, &amp;quot;mid&amp;quot;, &amp;quot;mov&amp;quot;, &amp;quot;mp3&amp;quot;, &amp;quot;mp4&amp;quot;, &amp;quot;mpc&amp;quot;, &amp;quot;mpeg&amp;quot;, &amp;quot;mpg&amp;quot;, &amp;quot;ods&amp;quot;, &amp;quot;odt&amp;quot;, &amp;quot;pdf&amp;quot;, &amp;quot;png&amp;quot;, &amp;quot;ppt&amp;quot;, &amp;quot;qt&amp;quot;, &amp;quot;ram&amp;quot;, &amp;quot;rar&amp;quot;,&lt;br /&gt;
&amp;quot;rm&amp;quot;, &amp;quot;rmi&amp;quot;, &amp;quot;rmvb&amp;quot;, &amp;quot;rtf&amp;quot;, &amp;quot;sdc&amp;quot;, &amp;quot;swf&amp;quot;, &amp;quot;sxc&amp;quot;, &amp;quot;sxw&amp;quot;, &amp;quot;tar&amp;quot;, &amp;quot;tgz&amp;quot;, &amp;quot;tif&amp;quot;, &amp;quot;tiff&amp;quot;, &amp;quot;txt&amp;quot;, &amp;quot;vsd&amp;quot;, &amp;quot;wav&amp;quot;, &amp;quot;wma&amp;quot;, &amp;quot;wmv&amp;quot;,&lt;br /&gt;
&amp;quot;xls&amp;quot;, &amp;quot;zip&amp;quot; };&lt;br /&gt;
type.DeniedExtensions = new string[] { };&lt;br /&gt;
&lt;br /&gt;
type = ResourceType.Add( &amp;quot;Images&amp;quot; );&lt;br /&gt;
type.Url = BaseUrl + &amp;quot;images/&amp;quot;;&lt;br /&gt;
type.Dir = BaseDir == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : BaseDir + &amp;quot;images/&amp;quot;;&lt;br /&gt;
type.MaxSize = 0;&lt;br /&gt;
type.AllowedExtensions = new string[] { &amp;quot;bmp&amp;quot;, &amp;quot;gif&amp;quot;, &amp;quot;jpeg&amp;quot;, &amp;quot;jpg&amp;quot;, &amp;quot;png&amp;quot; };&lt;br /&gt;
type.DeniedExtensions = new string[] { };&lt;br /&gt;
&lt;br /&gt;
type = ResourceType.Add( &amp;quot;Flash&amp;quot; );&lt;br /&gt;
type.Url = BaseUrl + &amp;quot;flash/&amp;quot;;&lt;br /&gt;
type.Dir = BaseDir == &amp;quot;&amp;quot; ? &amp;quot;&amp;quot; : BaseDir + &amp;quot;flash/&amp;quot;;&lt;br /&gt;
type.MaxSize = 0;&lt;br /&gt;
type.AllowedExtensions = new string[] { &amp;quot;swf&amp;quot;, &amp;quot;flv&amp;quot; };&lt;br /&gt;
type.DeniedExtensions = new string[] { };&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Notes}}&lt;br /&gt;
== Defining DefaultResourceTypes ==&lt;br /&gt;
&lt;br /&gt;
When opening CKFinder, you may specify which Resource Type to make visible by appending '''?type=&amp;amp;lt;TypeName&amp;amp;gt;''' to the CKFinder URL. If instead the type is not passed in the URL, the DefaultResourceTypes setting will be used to identify which Resource Types to load. If blank, all Resource Types will be displayed. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;&lt;br /&gt;
// Show all Resource Types:&lt;br /&gt;
DefaultResourceTypes = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// Show the &amp;quot;Images&amp;quot; and &amp;quot;Files&amp;quot; Resource Types only (separated by comma):&lt;br /&gt;
DefaultResourceTypes = &amp;quot;Images,Files&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
&lt;br /&gt;
== Resource Type Options ==&lt;br /&gt;
&lt;br /&gt;
For each resource type you may set several options to precisely configure its behavior.&lt;br /&gt;
&lt;br /&gt;
=== Url and Dir ===&lt;br /&gt;
&lt;br /&gt;
Define the base URL address and the server directory to use to handle and publish the files for this Resource Type. They follow the same rules as defined in the [[CKFinder_2.x/Developers Guide/ASP.NET/Configuration/Quick Start#Base URL and Directory|Quick Start]] section for the '''BaseUrl''' and '''BaseDir''' settings.&lt;br /&gt;
&lt;br /&gt;
=== MaxSize ===&lt;br /&gt;
&lt;br /&gt;
It's the maximum size allowed for uploaded file defined in Bytes.&lt;br /&gt;
&lt;br /&gt;
=== AllowedExtensions and DeniedExtensions ===&lt;br /&gt;
&lt;br /&gt;
You can use this settings to list the file extensions that can be upload to the server.&lt;br /&gt;
&lt;br /&gt;
* '''AllowedExtensions''' - the extensions you wish CKFinder to use. If left empty, only DeniedExtensions is used to check uploads.&lt;br /&gt;
* '''DeniedExtensions''' - the extensions you don't wish the CKFinder to use.&lt;br /&gt;
&lt;br /&gt;
'''Important: It is recommended''' to always use the AllowedExtensions setting, in favor of DeniedExtensions. If you leave '''AllowedExtensions''' empty and you define an extension in '''DeniedExtensions''', for example &amp;quot;pdf&amp;quot;, it will allow the upload of all the other files except the files with the &amp;quot;pdf&amp;quot; extension. However it isn't a good way to secure your server from unwanted uploads. The best way is to put all of the preferred extensions in '''AllowedExtensions'''. That's the only way to effectively secure your server from hacker's attacks.&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration/Resource_Types/Built-in&amp;diff=7434</id>
		<title>CKFinder 2.x/Developers Guide/ASP/Configuration/Resource Types/Built-in</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration/Resource_Types/Built-in&amp;diff=7434"/>
				<updated>2019-09-04T08:44:33Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Built-in_Resource_Types_Description|file=configuration}}&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;Set ResourceTypes(0) = DefineResourceType( _&lt;br /&gt;
&amp;quot;Files&amp;quot;, _ &lt;br /&gt;
baseUrl &amp;amp; &amp;quot;files&amp;quot;, _ &lt;br /&gt;
baseDir &amp;amp; &amp;quot;files&amp;quot;, _ &lt;br /&gt;
0, _ &lt;br /&gt;
&amp;quot;7z,aiff,asf,avi,bmp,csv,doc,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,qt,ram,rar,rm,&lt;br /&gt;
rmi,rmvb,rtf,sdc,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xml,zip&amp;quot;, _ &lt;br /&gt;
&amp;quot;&amp;quot; _&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Set ResourceTypes(1) = DefineResourceType( _&lt;br /&gt;
&amp;quot;Images&amp;quot;, _&lt;br /&gt;
baseUrl &amp;amp; &amp;quot;images&amp;quot;, _&lt;br /&gt;
baseDir &amp;amp; &amp;quot;images&amp;quot;, _&lt;br /&gt;
0, _&lt;br /&gt;
&amp;quot;bmp,gif,jpeg,jpg,png&amp;quot;, _&lt;br /&gt;
&amp;quot;&amp;quot; _&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Set ResourceTypes(2) = DefineResourceType( _&lt;br /&gt;
&amp;quot;Flash&amp;quot;, _&lt;br /&gt;
baseUrl &amp;amp; &amp;quot;flash&amp;quot;, _&lt;br /&gt;
baseDir &amp;amp; &amp;quot;flash&amp;quot;, _&lt;br /&gt;
0, _&lt;br /&gt;
&amp;quot;swf,flv&amp;quot;, _&lt;br /&gt;
&amp;quot;&amp;quot; _&lt;br /&gt;
)&amp;lt;/source&amp;gt;&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Notes}}&lt;br /&gt;
&lt;br /&gt;
The above syntax reffers to functions written below in the following order:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;ResourceType.Add &amp;quot;name&amp;quot;, name&lt;br /&gt;
ResourceType.Add &amp;quot;url&amp;quot;, url&lt;br /&gt;
ResourceType.Add &amp;quot;directory&amp;quot;, directory&lt;br /&gt;
ResourceType.Add &amp;quot;maxSize&amp;quot;, maxSize&lt;br /&gt;
ResourceType.Add &amp;quot;allowedExtensions&amp;quot;, allowedExtensions&lt;br /&gt;
ResourceType.Add &amp;quot;deniedExtensions&amp;quot;, deniedExtensions&lt;br /&gt;
&amp;lt;/source&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
These resources will be enabled by default if this option:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;asp&amp;quot;&amp;gt;CKFinder_Config.Add &amp;quot;DefaultResourceTypes&amp;quot;, &amp;quot;&amp;quot;&amp;lt;/source&amp;gt; &lt;br /&gt;
is left empty. You may specify which resource types you want to use by placing their names separated by a comma.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Options|link=CKFinder_2.x/Developers_Guide/ASP/Configuration/Quick_Start}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_Built-in_Resource_Types_Options&amp;diff=7433</id>
		<title>Template:Ckfinder 2.x Built-in Resource Types Options</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_Built-in_Resource_Types_Options&amp;diff=7433"/>
				<updated>2019-09-04T08:43:38Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Resource Type Options ==&lt;br /&gt;
For each resource type you may set several options to configure its behavior.&lt;br /&gt;
 &lt;br /&gt;
* &amp;lt;code&amp;gt;url&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;directory&amp;lt;/code&amp;gt; &amp;amp;ndash; define the base URL address and the server directory used to handle and publish the files for this resource type. They follow the same rules as defined in the [[{{{link}}}|Quick Start]] section for the &amp;lt;code&amp;gt;baseUrl&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;baseDir&amp;lt;/code&amp;gt; settings.&lt;br /&gt;
 &lt;br /&gt;
* &amp;lt;code&amp;gt;maxSize&amp;lt;/code&amp;gt; &amp;amp;ndash; is the maximum size of the uploaded image defined in bytes. You may also use shorthand notation. Available options are: &amp;lt;code&amp;gt;G&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;K&amp;lt;/code&amp;gt; (case insensitive). Remember that &amp;lt;code&amp;gt;1M&amp;lt;/code&amp;gt; equals 1048576 bytes (one Megabyte), &amp;lt;code&amp;gt;1K&amp;lt;/code&amp;gt; equals 1024 bytes (one Kilobyte), &amp;lt;code&amp;gt;1G&amp;lt;/code&amp;gt; equals 1 Gigabyte.&lt;br /&gt;
*; Example: {{{example}}}&lt;br /&gt;
 &lt;br /&gt;
You can use the following settings to list the file extensions that can be upload to the server:&lt;br /&gt;
* &amp;lt;code&amp;gt;allowedExtensions&amp;lt;/code&amp;gt; &amp;amp;ndash; the file extensions you wish to be allowed for upload with CKFinder. If left empty, only &amp;lt;code&amp;gt;deniedExtensions&amp;lt;/code&amp;gt; is used to check uploads. &amp;lt;code&amp;gt;NO_EXT&amp;lt;/code&amp;gt; value can be used for files without extension.&lt;br /&gt;
* &amp;lt;code&amp;gt;deniedExtensions&amp;lt;/code&amp;gt; &amp;amp;ndash; the file extensions you do not wish to be uploaded with CKFinder. &amp;lt;code&amp;gt;NO_EXT&amp;lt;/code&amp;gt; value can be used for files without extension.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;note&amp;gt;Important: It is '''recommended''' to always use the &amp;lt;code&amp;gt;allowedExtensions&amp;lt;/code&amp;gt; setting, in favor of &amp;lt;code&amp;gt;deniedExtensions&amp;lt;/code&amp;gt;. If you leave &amp;lt;code&amp;gt;allowedExtensions&amp;lt;/code&amp;gt; empty and you add an extension to the  &amp;lt;code&amp;gt;deniedExtensions&amp;lt;/code&amp;gt; list, for example &amp;lt;code&amp;gt;pdf&amp;lt;/code&amp;gt;, the settings will allow the upload of all other files except the files with the &amp;lt;code&amp;gt;pdf&amp;lt;/code&amp;gt; extension. This approach is not a good way to secure your server from unwanted uploads. The best way is to put all of the preferred extensions in the &amp;lt;code&amp;gt;allowedExtensions&amp;lt;/code&amp;gt; list. This is the only way to effectively secure your server from hacker attacks.&amp;lt;/note&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Resource_Types/Built-in&amp;diff=7432</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Configuration/Resource Types/Built-in</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Resource_Types/Built-in&amp;diff=7432"/>
				<updated>2019-09-04T08:41:40Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x_Built-in_Resource_Types_Description|file=config.php}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$config['ResourceType'][] = Array(&lt;br /&gt;
'name' =&amp;gt; 'Files', // Single quotes not allowed&lt;br /&gt;
'url' =&amp;gt; $baseUrl . 'files',&lt;br /&gt;
'directory' =&amp;gt; $baseDir . 'files',&lt;br /&gt;
'maxSize' =&amp;gt; 0,&lt;br /&gt;
'allowedExtensions' =&amp;gt; '7z,aiff,asf,avi,bmp,csv,doc,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,&lt;br /&gt;
ppt,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xml,zip',&lt;br /&gt;
'deniedExtensions' =&amp;gt; '');&lt;br /&gt;
&lt;br /&gt;
$config['ResourceType'][] = Array(&lt;br /&gt;
'name' =&amp;gt; 'Images',&lt;br /&gt;
'url' =&amp;gt; $baseUrl . 'images',&lt;br /&gt;
'directory' =&amp;gt; $baseDir . 'images',&lt;br /&gt;
'maxSize' =&amp;gt; 0,&lt;br /&gt;
'allowedExtensions' =&amp;gt; 'bmp,gif,jpeg,jpg,png',&lt;br /&gt;
'deniedExtensions' =&amp;gt; '');&lt;br /&gt;
&lt;br /&gt;
$config['ResourceType'][] = Array(&lt;br /&gt;
'name' =&amp;gt; 'Flash',&lt;br /&gt;
'url' =&amp;gt; $baseUrl . 'flash',&lt;br /&gt;
'directory' =&amp;gt; $baseDir . 'flash',&lt;br /&gt;
'maxSize' =&amp;gt; 0,&lt;br /&gt;
'allowedExtensions' =&amp;gt; 'swf,flv',&lt;br /&gt;
'deniedExtensions' =&amp;gt; '');&amp;lt;/source&amp;gt; &lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Notes}}&lt;br /&gt;
These resources will be enabled by default if this option:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;$config['DefaultResourceTypes'] = '';&amp;lt;/source&amp;gt; &lt;br /&gt;
is left empty. You may specify which resource types you want to use by placing their names separated by a comma.&lt;br /&gt;
&lt;br /&gt;
{{Ckfinder_2.x_Built-in_Resource_Types_Options|example=&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;'maxSize' =&amp;gt; &amp;quot;8M&amp;quot;,&amp;lt;/source&amp;gt;|link=CKFinder_2.x/Developers_Guide/PHP/Configuration/Quick_Start}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7430</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7430"/>
				<updated>2019-08-21T11:12:01Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&lt;br /&gt;
&lt;br /&gt;
The simplest way to add the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header to all the responses is by creating a servlet filter, like presented on the code listing below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import javax.servlet.*;&lt;br /&gt;
import javax.servlet.http.HttpServletResponse;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
&lt;br /&gt;
public class ContentOptionsFilter implements Filter {&lt;br /&gt;
    @Override&lt;br /&gt;
    public void init(FilterConfig filterConfig) {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {&lt;br /&gt;
        ((HttpServletResponse) response).setHeader(&amp;quot;X-Content-Type-Options&amp;quot;, &amp;quot;nosniff&amp;quot;);&lt;br /&gt;
        chain.doFilter(request, response);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    public void destroy() {}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7429</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7429"/>
				<updated>2019-08-21T11:11:34Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&lt;br /&gt;
&lt;br /&gt;
The simplest way to add the `X-Content-Type-Options` header to all the responses is by creating a servlet filter, like presented on the code listing below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import javax.servlet.*;&lt;br /&gt;
import javax.servlet.http.HttpServletResponse;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
&lt;br /&gt;
public class ContentOptionsFilter implements Filter {&lt;br /&gt;
    @Override&lt;br /&gt;
    public void init(FilterConfig filterConfig) {&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {&lt;br /&gt;
        ((HttpServletResponse) response).setHeader(&amp;quot;X-Content-Type-Options&amp;quot;, &amp;quot;nosniff&amp;quot;);&lt;br /&gt;
        chain.doFilter(request, response);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    public void destroy() {}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7428</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7428"/>
				<updated>2019-08-21T10:59:21Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: Created page with &amp;quot;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration&amp;diff=7427</id>
		<title>CKFinder 2.x/Developers Guide/Java/Configuration</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/Java/Configuration&amp;diff=7427"/>
				<updated>2019-08-21T10:59:05Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Server Side Configuration ==&lt;br /&gt;
CKFinder configuration in Java is based on editing the '''&amp;lt;code&amp;gt;config.xml&amp;lt;/code&amp;gt;''' file. To learn more refer to the following sections:&lt;br /&gt;
&lt;br /&gt;
* [[/Quick Start|Quick Start]]&lt;br /&gt;
** [[/baseURL and baseDir|baseURL and baseDir Explained]]&lt;br /&gt;
* [[/Access Control|Access Control]]&lt;br /&gt;
* [[/Images|Images]] &lt;br /&gt;
* [[/Resource Types|Resource Types]] &lt;br /&gt;
** [[/Resource Types/Built-in|Built-in Resource Types]]&lt;br /&gt;
** [[/Resource Types/New|Adding New Resource Types]]&lt;br /&gt;
* [[/Security|Security]] &lt;br /&gt;
** [[/Security/Double file extensions|Double File Extensions]]&lt;br /&gt;
** [[/Security/Image uploads|Image Uploads]]&lt;br /&gt;
** [[/Security/Html extensions|HTML Extensions]]&lt;br /&gt;
** [[/Security/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;br /&gt;
* [[/URI Encoding|URI Encoding]]&lt;br /&gt;
* [[/Hiding Folders and Files|Hiding Specific Folders and Files]]&lt;br /&gt;
* [[/Extending|Extending Configuration]]&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x JavaScript Configuration|language=Java}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Security&amp;diff=7426</id>
		<title>CKFinder 2.x/Developers Guide/ColdFusion/Configuration/Security</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Security&amp;diff=7426"/>
				<updated>2019-08-21T10:57:37Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Due to improve security issues on your server please follow the information written in sections below:&lt;br /&gt;
&lt;br /&gt;
* [[CKFinder_2.x/Developers Guide/ColdFusion/Configuration/Security/Double file extensions|Double file extensions]]&lt;br /&gt;
* [[CKFinder_2.x/Developers Guide/ColdFusion/Configuration/Security/Image uploads|Image Uploads]]&lt;br /&gt;
* [[CKFinder_2.x/Developers Guide/ColdFusion/Configuration/Security/Html extensions|Html extensions]]&lt;br /&gt;
* [[CKFinder_2.x/Developers Guide/ColdFusion/Configuration/Security/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7425</id>
		<title>CKFinder 2.x/Developers Guide/ColdFusion/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7425"/>
				<updated>2019-08-21T10:56:44Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: Created page with &amp;quot;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration&amp;diff=7424</id>
		<title>CKFinder 2.x/Developers Guide/ColdFusion/Configuration</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ColdFusion/Configuration&amp;diff=7424"/>
				<updated>2019-08-21T10:56:28Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Server Side Configuration ==&lt;br /&gt;
&lt;br /&gt;
CKFinder configuration in ColdFusion is based on editing the '''config.cfm''' file. To learn more go throughout the following sections: &lt;br /&gt;
&lt;br /&gt;
* [[/Quick Start|Quick Start]] &lt;br /&gt;
* [[/Sessions|Sessions]] &lt;br /&gt;
* [[/Access Control|Access Control]] &lt;br /&gt;
* [[/Images|Images]] &lt;br /&gt;
* [[/Resource Types|Resource Types]] &lt;br /&gt;
** [[/Resource Types/Built-in|Built-in Resource Types]] &lt;br /&gt;
** [[/Resource Types/New|Adding New Resource Types]] &lt;br /&gt;
* [[/Security|Security]] &lt;br /&gt;
** [[/Security/Double file extensions|Double File Extensions]] &lt;br /&gt;
** [[/Security/Image uploads|Image Uploads]] &lt;br /&gt;
** [[/Security/Html extensions|HTML Extensions]]&lt;br /&gt;
** [[/Security/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x JavaScript Configuration|language=PHP}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Security&amp;diff=7423</id>
		<title>CKFinder 2.x/Developers Guide/ASP.NET/Configuration/Security</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Security&amp;diff=7423"/>
				<updated>2019-08-21T10:55:51Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Due to improve security issues on your server please follow the information written in sections below:&lt;br /&gt;
&lt;br /&gt;
* [[/Double file extensions|Double file extensions]]&lt;br /&gt;
* [[/Image uploads|Image Uploads]]&lt;br /&gt;
* [[/Html extensions|Html extensions]]&lt;br /&gt;
* [[/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7422</id>
		<title>CKFinder 2.x/Developers Guide/ASP.NET/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7422"/>
				<updated>2019-08-21T10:55:08Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: Created page with &amp;quot;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}   '''Microsoft IIS'''  For Microsoft IIS servers, you can enable the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header in your...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Microsoft IIS'''&lt;br /&gt;
&lt;br /&gt;
For Microsoft IIS servers, you can enable the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header in your &amp;lt;code&amp;gt;web.config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
    &amp;lt;httpProtocol&amp;gt;&lt;br /&gt;
      &amp;lt;customHeaders&amp;gt;&lt;br /&gt;
        &amp;lt;remove name=&amp;quot;X-Content-Type-Options&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;add name=&amp;quot;X-Content-Type-Options&amp;quot; value=&amp;quot;nosniff&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/customHeaders&amp;gt;&lt;br /&gt;
    &amp;lt;/httpProtocol&amp;gt;&lt;br /&gt;
&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration&amp;diff=7421</id>
		<title>CKFinder 2.x/Developers Guide/ASP.NET/Configuration</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP.NET/Configuration&amp;diff=7421"/>
				<updated>2019-08-21T10:54:40Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Server Side Configuration ==&lt;br /&gt;
All configurations for CKFinder for ASP.NET can be found in the '''config.ascx''' file. To learn more go throughout the following sections:&lt;br /&gt;
&lt;br /&gt;
* [[/Quick Start|Quick Start]]&lt;br /&gt;
* [[/Access Control|Access Control]]&lt;br /&gt;
* [[/Images|Images]]&lt;br /&gt;
* [[/Resource Types|Resource Types]] &lt;br /&gt;
** [[/Resource Types/Built-in|Built-in Resource Types]]&lt;br /&gt;
** [[/Resource Types/New|Adding New Resource Types]]&lt;br /&gt;
* [[/Security|Security]] &lt;br /&gt;
** [[/Security/Double file extensions|Double File Extensions]]&lt;br /&gt;
** [[/Security/Image uploads|Image Uploads]]&lt;br /&gt;
** [[/Security/Html extensions|HTML Extensions]]&lt;br /&gt;
** [[/Security/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x JavaScript Configuration|language=ASP.NET}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7420</id>
		<title>CKFinder 2.x/Developers Guide/ASP/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7420"/>
				<updated>2019-08-21T10:53:55Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: Created page with &amp;quot;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}   '''Microsoft IIS'''  For Microsoft IIS servers, you can enable the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header in your...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Microsoft IIS'''&lt;br /&gt;
&lt;br /&gt;
For Microsoft IIS servers, you can enable the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header in your &amp;lt;code&amp;gt;web.config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
    &amp;lt;httpProtocol&amp;gt;&lt;br /&gt;
      &amp;lt;customHeaders&amp;gt;&lt;br /&gt;
        &amp;lt;remove name=&amp;quot;X-Content-Type-Options&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;add name=&amp;quot;X-Content-Type-Options&amp;quot; value=&amp;quot;nosniff&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/customHeaders&amp;gt;&lt;br /&gt;
    &amp;lt;/httpProtocol&amp;gt;&lt;br /&gt;
&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration&amp;diff=7419</id>
		<title>CKFinder 2.x/Developers Guide/ASP/Configuration</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/ASP/Configuration&amp;diff=7419"/>
				<updated>2019-08-21T10:52:41Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Server Side Configuration ==&lt;br /&gt;
&lt;br /&gt;
CKFinder configuration in the ASP language is based on editing the '''config.asp''' file. To learn more go throughout the following sections:&lt;br /&gt;
&lt;br /&gt;
* [[/Quick Start|Quick Start]]&lt;br /&gt;
* [[/Access Control|Access Control]]&lt;br /&gt;
* [[/Images|Images]] &lt;br /&gt;
* [[/Resource Types|Resource Types]] &lt;br /&gt;
** [[/Resource Types/Built-in|Built-in Resource Types]]&lt;br /&gt;
** [[/Resource Types/New|Adding New Resource Types]]&lt;br /&gt;
* [[/Security|Security]] &lt;br /&gt;
** [[/Security/Double file extensions|Double File Extensions]]&lt;br /&gt;
** [[/Security/Image uploads|Image Uploads]]&lt;br /&gt;
** [[/Security/Html extensions|HTML Extensions]]&lt;br /&gt;
** [[/Security/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x JavaScript Configuration|language=ASP}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_Securing_a_Publicly_Accessible_Folder&amp;diff=7418</id>
		<title>Template:Ckfinder 2.x Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_Securing_a_Publicly_Accessible_Folder&amp;diff=7418"/>
				<updated>2019-08-21T10:51:12Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: Created page with &amp;quot;When integrating CKFinder, you will often want to give users access to uploaded files, so they can insert images or links to files into the edited content. This requires to ma...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When integrating CKFinder, you will often want to give users access to uploaded files, so they can insert images or links to files into the edited content. This requires to make the folder publicly accessible, so all the files are served through the web server. If you rely on your web server to serve the files uploaded with CKFinder, you should take additional steps to make sure the files are served in a secure way.&lt;br /&gt;
&lt;br /&gt;
Let us assume that you have configured your CKFinder to allow uploading of avi files. Even if the avi file is then served with a valid Content-Type: &amp;lt;code&amp;gt;video/x-msvideo&amp;lt;/code&amp;gt; header, some browsers may ignore this information and perform additional checks on the raw file contents. If any HTML-like data is detected in the file content, the browser may decide to ignore information about the content type and handle the served content as if it was a regular web page. This behavior is called [https://en.wikipedia.org/wiki/Content_sniffing content sniffing] (also known as ''media type sniffing'' or ''MIME sniffing''), and in some circumstances, it may lead to security issues (for example, it may open door for XSS attacks)).&lt;br /&gt;
&lt;br /&gt;
To avoid content sniffing, you should make sure that your server adds the &amp;lt;code&amp;gt;X-Content-Type-Options: nosniff&amp;lt;/code&amp;gt; header to all HTTP responses when serving files from the publicly available folder. The &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; response HTTP header is a marker used by the server to indicate that the MIME type set by the &amp;lt;code&amp;gt;Content-Type&amp;lt;/code&amp;gt; header should not be changed and should be followed. As a result, the browser does not perform any content sniffing on the received content.&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7417</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7417"/>
				<updated>2019-08-21T10:50:51Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ckfinder_2.x Securing a Publicly Accessible Folder}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Apache'''&lt;br /&gt;
&lt;br /&gt;
If you use the Apache web server, you can add custom HTTP response headers using [https://httpd.apache.org/docs/current/mod/mod_headers.html mod_headers]. Make sure the &amp;lt;code&amp;gt;mod_headers&amp;lt;/code&amp;gt; module is enabled, and create (or modify) the following &amp;lt;code&amp;gt;.htaccess&amp;lt;/code&amp;gt; file in the root of the publicly accessible folder (for example &amp;lt;code&amp;gt;userfiles/.htaccess&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Header set X-Content-Type-Options &amp;quot;nosniff&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Nginx'''&lt;br /&gt;
&lt;br /&gt;
If you use Nginx, custom HTTP response headers can be defined per location:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
location /userfiles {&lt;br /&gt;
    add_header X-Content-Type-Options nosniff;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Microsoft IIS'''&lt;br /&gt;
&lt;br /&gt;
For Microsoft IIS servers, you can enable the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header in your &amp;lt;code&amp;gt;web.config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
    &amp;lt;httpProtocol&amp;gt;&lt;br /&gt;
      &amp;lt;customHeaders&amp;gt;&lt;br /&gt;
        &amp;lt;remove name=&amp;quot;X-Content-Type-Options&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;add name=&amp;quot;X-Content-Type-Options&amp;quot; value=&amp;quot;nosniff&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/customHeaders&amp;gt;&lt;br /&gt;
    &amp;lt;/httpProtocol&amp;gt;&lt;br /&gt;
&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_Security&amp;diff=7416</id>
		<title>Template:Ckfinder 2.x Security</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_Security&amp;diff=7416"/>
				<updated>2019-08-21T10:42:37Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to improve the security of your server we recommend you follow the information presented in the sections below:&lt;br /&gt;
&lt;br /&gt;
* [[/Double file extensions|Double file extensions]]&lt;br /&gt;
* [[/Image uploads|Image uploads]]&lt;br /&gt;
* [[/Html extensions|HTML extensions]]&lt;br /&gt;
* [[/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_html_extension_Description&amp;diff=7415</id>
		<title>Template:Ckfinder 2.x html extension Description</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_html_extension_Description&amp;diff=7415"/>
				<updated>2019-08-21T10:39:41Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:Declaring HTML Extensions}}&lt;br /&gt;
Sometimes when you are uploading a file it may contain HTML code in the first kilobytes of its data. CKFinder will upload the file with the HTML code only when the file extension is added to the following configuration setting:&amp;amp;nbsp; &lt;br /&gt;
{{{code}}}&lt;br /&gt;
&lt;br /&gt;
If you, for example, want to upload an &amp;lt;code&amp;gt;.xsl&amp;lt;/code&amp;gt; file that contains HTML code at the beginning of the file, you should add this file extension to the list.&lt;br /&gt;
{{{code2}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that this feature performs only a very basic set of checks to detect HTML-like data in the first 1kB of the file contents to protect users e.g. against unintentional uploading of files with HTML content and with a wrong extension. &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_html_extension_Description&amp;diff=7414</id>
		<title>Template:Ckfinder 2.x html extension Description</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=Template:Ckfinder_2.x_html_extension_Description&amp;diff=7414"/>
				<updated>2019-08-21T10:38:48Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#CUSTOMTITLE:Declaring HTML Extensions}}&lt;br /&gt;
Sometimes when you are uploading a file it may contain HTML code in the first kilobytes of its data. CKFinder will upload the file with the HTML code only when the file extension is added to the following configuration setting:&amp;amp;nbsp; &lt;br /&gt;
{{{code}}}&lt;br /&gt;
&lt;br /&gt;
If you, for example, want to upload an &amp;lt;code&amp;gt;.xsl&amp;lt;/code&amp;gt; file that contains HTML code at the beginning of the file, you should add this file extension to the list.&lt;br /&gt;
{{{code2}}}&lt;br /&gt;
&lt;br /&gt;
Please note that this feature performs only a very basic set of checks to detect HTML-like data in the first 1kB of the file contents to protect users e.g. against unintentional uploading of files with HTML content and with a wrong extension. &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration&amp;diff=7413</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Configuration</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration&amp;diff=7413"/>
				<updated>2019-08-21T10:31:37Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Server Side Configuration ==&lt;br /&gt;
CKFinder configuration in the PHP language is based on editing the '''config.php''' file. To learn more go throughout the following sections:&lt;br /&gt;
&lt;br /&gt;
* [[/Quick Start|Quick Start]]&lt;br /&gt;
* [[/Sessions|Sessions]]&lt;br /&gt;
* [[/Access Control|Access Control]]&lt;br /&gt;
* [[/Images|Images]] &lt;br /&gt;
* [[/Resource Types|Resource Types]] &lt;br /&gt;
** [[/Resource Types/Built-in|Built-in Resource Types]]&lt;br /&gt;
** [[/Resource Types/New|Adding New Resource Types]]&lt;br /&gt;
* [[/Security|Security]] &lt;br /&gt;
** [[/Security/Double file extensions|Double File Extensions]]&lt;br /&gt;
** [[/Security/Image uploads|Image Uploads]]&lt;br /&gt;
** [[/Security/Html extensions|HTML Extensions]]&lt;br /&gt;
** [[/Security/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;br /&gt;
* [[/File system Encoding|File System Encoding]]&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x JavaScript Configuration|language=PHP}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7412</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7412"/>
				<updated>2019-08-21T10:23:20Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When integrating CKFinder, you will often want to give users access to uploaded files, so they can insert images or links to files into the edited content. This requires to make the folder publicly accessible, so all the files are served through the web server. If you rely on your web server to serve the files uploaded with CKFinder, you should take additional steps to make sure the files are served in a secure way.&lt;br /&gt;
&lt;br /&gt;
Let us assume that you have configured your CKFinder to allow uploading of avi files. Even if the avi file is then served with a valid Content-Type: &amp;lt;code&amp;gt;video/x-msvideo&amp;lt;/code&amp;gt; header, some browsers may ignore this information and perform additional checks on the raw file contents. If any HTML-like data is detected in the file content, the browser may decide to ignore information about the content type and handle the served content as if it was a regular web page. This behavior is called [https://en.wikipedia.org/wiki/Content_sniffing content sniffing] (also known as ''media type sniffing'' or ''MIME sniffing''), and in some circumstances, it may lead to security issues (for example, it may open door for XSS attacks)).&lt;br /&gt;
&lt;br /&gt;
To avoid content sniffing, you should make sure that your server adds the &amp;lt;code&amp;gt;X-Content-Type-Options: nosniff&amp;lt;/code&amp;gt; header to all HTTP responses when serving files from the publicly available folder. The &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; response HTTP header is a marker used by the server to indicate that the MIME type set by the &amp;lt;code&amp;gt;Content-Type&amp;lt;/code&amp;gt; header should not be changed and should be followed. As a result, the browser does not perform any content sniffing on the received content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Apache'''&lt;br /&gt;
&lt;br /&gt;
If you use the Apache web server, you can add custom HTTP response headers using [https://httpd.apache.org/docs/current/mod/mod_headers.html mod_headers]. Make sure the &amp;lt;code&amp;gt;mod_headers&amp;lt;/code&amp;gt; module is enabled, and create (or modify) the following &amp;lt;code&amp;gt;.htaccess&amp;lt;/code&amp;gt; file in the root of the publicly accessible folder (for example &amp;lt;code&amp;gt;userfiles/.htaccess&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Header set X-Content-Type-Options &amp;quot;nosniff&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Nginx'''&lt;br /&gt;
&lt;br /&gt;
If you use Nginx, custom HTTP response headers can be defined per location:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
location /userfiles {&lt;br /&gt;
    add_header X-Content-Type-Options nosniff;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Microsoft IIS'''&lt;br /&gt;
&lt;br /&gt;
For Microsoft IIS servers, you can enable the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header in your &amp;lt;code&amp;gt;web.config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
    &amp;lt;httpProtocol&amp;gt;&lt;br /&gt;
      &amp;lt;customHeaders&amp;gt;&lt;br /&gt;
        &amp;lt;remove name=&amp;quot;X-Content-Type-Options&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;add name=&amp;quot;X-Content-Type-Options&amp;quot; value=&amp;quot;nosniff&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/customHeaders&amp;gt;&lt;br /&gt;
    &amp;lt;/httpProtocol&amp;gt;&lt;br /&gt;
&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7411</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Configuration/Security/Securing a Publicly Accessible Folder</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration/Security/Securing_a_Publicly_Accessible_Folder&amp;diff=7411"/>
				<updated>2019-08-21T10:22:42Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: Created page with &amp;quot;When integrating CKFinder, you will often want to give users access to uploaded files, so they can insert images or links to files into the edited content. This requires to ma...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When integrating CKFinder, you will often want to give users access to uploaded files, so they can insert images or links to files into the edited content. This requires to make the folder publicly accessible, so all the files are served through the web server. If you rely on your web server to serve the files uploaded with CKFinder, you should take additional steps to make sure the files are served in a secure way.&lt;br /&gt;
&lt;br /&gt;
Let us assume that you have configured your CKFinder to allow uploading of avi files. Even if the avi file is then served with a valid Content-Type: &amp;lt;code&amp;gt;video/x-msvideo&amp;lt;/code&amp;gt; header, some browsers may ignore this information and perform additional checks on the raw file contents. If any HTML-like data is detected in the file content, the browser may decide to ignore information about the content type and handle the served content as if it was a regular web page. This behavior is called [https://en.wikipedia.org/wiki/Content_sniffing content sniffing] (also known as ''media type sniffing'' or ''MIME sniffing''), and in some circumstances, it may lead to security issues (for example, it may open door for XSS attacks)).&lt;br /&gt;
&lt;br /&gt;
To avoid content sniffing, you should make sure that your server adds the &amp;lt;code&amp;gt;X-Content-Type-Options: nosniff&amp;lt;/code&amp;gt; header to all HTTP responses when serving files from the publicly available folder. The &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; response HTTP header is a marker used by the server to indicate that the MIME type set by the &amp;lt;code&amp;gt;Content-Type&amp;lt;/code&amp;gt; header should not be changed and should be followed. As a result, the browser does not perform any content sniffing on the received content.&lt;br /&gt;
&lt;br /&gt;
'''Apache'''&lt;br /&gt;
&lt;br /&gt;
If you use the Apache web server, you can add custom HTTP response headers using [https://httpd.apache.org/docs/current/mod/mod_headers.html mod_headers]. Make sure the &amp;lt;code&amp;gt;mod_headers&amp;lt;/code&amp;gt; module is enabled, and create (or modify) the following &amp;lt;code&amp;gt;.htaccess&amp;lt;/code&amp;gt; file in the root of the publicly accessible folder (for example &amp;lt;code&amp;gt;userfiles/.htaccess&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
Header set X-Content-Type-Options &amp;quot;nosniff&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Nginx'''&lt;br /&gt;
&lt;br /&gt;
If you use Nginx, custom HTTP response headers can be defined per location:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
location /userfiles {&lt;br /&gt;
    add_header X-Content-Type-Options nosniff;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Microsoft IIS'''&lt;br /&gt;
&lt;br /&gt;
For Microsoft IIS servers, you can enable the &amp;lt;code&amp;gt;X-Content-Type-Options&amp;lt;/code&amp;gt; header in your &amp;lt;code&amp;gt;web.config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
    &amp;lt;httpProtocol&amp;gt;&lt;br /&gt;
      &amp;lt;customHeaders&amp;gt;&lt;br /&gt;
        &amp;lt;remove name=&amp;quot;X-Content-Type-Options&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;add name=&amp;quot;X-Content-Type-Options&amp;quot; value=&amp;quot;nosniff&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/customHeaders&amp;gt;&lt;br /&gt;
    &amp;lt;/httpProtocol&amp;gt;&lt;br /&gt;
&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	<entry>
		<id>https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration&amp;diff=7410</id>
		<title>CKFinder 2.x/Developers Guide/PHP/Configuration</title>
		<link rel="alternate" type="text/html" href="https://docs-old.ckeditor.com/index.php?title=CKFinder_2.x/Developers_Guide/PHP/Configuration&amp;diff=7410"/>
				<updated>2019-08-21T10:08:32Z</updated>
		
		<summary type="html">&lt;p&gt;P.Wiaderny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Server Side Configuration ==&lt;br /&gt;
CKFinder configuration in the PHP language is based on editing the '''config.php''' file. To learn more go throughout the following sections:&lt;br /&gt;
&lt;br /&gt;
* [[/Quick Start|Quick Start]]&lt;br /&gt;
* [[/Sessions|Sessions]]&lt;br /&gt;
* [[/Access Control|Access Control]]&lt;br /&gt;
* [[/Images|Images]] &lt;br /&gt;
* [[/Resource Types|Resource Types]] &lt;br /&gt;
** [[/Resource Types/Built-in|Built-in Resource Types]]&lt;br /&gt;
** [[/Resource Types/New|Adding New Resource Types]]&lt;br /&gt;
* [[/Security|Security]] &lt;br /&gt;
** [[/Security/Double file extensions|Double File Extensions]]&lt;br /&gt;
** [[/Security/Image uploads|Image Uploads]]&lt;br /&gt;
** [[/Security/Html extensions|HTML Extensions]]&lt;br /&gt;
** [[/Security/Html extensions|HTML Extensions]]&lt;br /&gt;
** [[/Security/Securing a Publicly Accessible Folder|Securing a Publicly Accessible Folder]]&lt;br /&gt;
* [[/File system Encoding|File System Encoding]]&lt;br /&gt;
&lt;br /&gt;
{{CKFinder_2.x JavaScript Configuration|language=PHP}}&lt;/div&gt;</summary>
		<author><name>P.Wiaderny</name></author>	</entry>

	</feed>