# Only allow direct access to specific Web-available files.

# Apache 2.2
<IfModule !mod_authz_core.c>
	Order Deny,Allow
	Deny from all
</IfModule>

# Apache 2.4
<IfModule mod_authz_core.c>
	Require all denied
</IfModule>

# Fogata CSS and JS
<FilesMatch "^(fogata-chat\.js|switch-button\.js|fogata-custom-script\.js|typed.min\.js|fogata-admin\.css|fogata-chat\.css|bootstrap-toggle.min\.css|bootstrap.min\.css|fogata-font-awesome\.css|fa-solid-900\.ttf|fa-solid-900\.woff|fa-solid-900\.woff2)$">
	<IfModule !mod_authz_core.c>
		Allow from all
	</IfModule>

	<IfModule mod_authz_core.c>
		Require all granted
	</IfModule>
</FilesMatch>

# Fogata images
<FilesMatch "^(logo-fogata-bot\.png|logo-fogata\.png)$">
	<IfModule !mod_authz_core.c>
		Allow from all
	</IfModule>

	<IfModule mod_authz_core.c>
		Require all granted
	</IfModule>
</FilesMatch>

# Fogata PHP
<FilesMatch "^(admin\.php|widget\.php)$">
	<IfModule !mod_authz_core.c>
		Allow from all
	</IfModule>

	<IfModule mod_authz_core.c>
		Require all granted
	</IfModule>
</FilesMatch>
