we caboodle News

How to Fix “Sorry, This File Type Is Not Permitted for Security Reasons” – WordPress

News Categories: Wordpress

This article was published on: 08/17/20 6:30 PM

Looking to use custom Web fonts on your WordPress Themes? Some hosting providers restrict the upload of WOFF files to enable custom fonts. Here is a quick break down of how to enable this feature.

WordPress includes an ALLOW_UNFILTERED_UPLOADS option that you can enable in your site’s wp-config.php file but its not set by default, we will show you how so once this is enabled, you’ll be able to upload any file type to your WordPress Media Library including custom font files.


Here’s how to set it up – but first, because you’ll be editing your wp-config.php file, we’d recommend backing up your site before proceeding.


Connect to your WordPress site via FTP/SFTP.

Locate your site’s wp-config.php ( file is located in the root folder, which is the same folder that has the wp-admin and wp-includes folders)

Open wp-config.php

Add the following line


Save and overwrite

Upload your custom WOFF, WOFF2 fonts, and enjoy.


we caboodle - full service agency team

Ready to Start?

we are driven by the challenge of building a bespoke website for your business, improve SEO performance, fix UX/UI issues and streamline your branding across all social & paid channels.

Are you looking for a new, full service agency? contact us today for a free quotation or advice, and lets build something great, together!





    William Holt

    Meet Will

    I've been designing & developing websites for over 2 decades. my first project was built on Microsoft Frontpage, yes I go that far back!

    Speak to me direct regarding your next project or the benefits of switching your digital agency to Web Caboodle

    will@wecaboodle.com | 07368 229004 | LinkedIn Profile

    Web Design Manchester

    Studio 13
    Woolden Road

    Web Design London

    71-75 Shelton Street
    Covent Garden

    let's connect


    Copyright 2023 Web Caboodle - Web Design and Development Agency | We Website Design Ltd 13127888 Registered in England and Wales | Privacy Policy