• Add to Collection
  • Tools Used

    Tools

  • About

    About

    A module that manages, protects and obfuscates webfonts.
    Published:
A module that manages, protects and obfuscates webfonts.
I decided to repurpose some custom code I wrote on another project and repurpose it into a module for an up and coming CMS called PyroCMS. This module manages, protects and obfuscates webfonts. Your webfonts are protected by checking HTTP_REFERER to make sure that only requests from your website will be allowed to download the fonts. Direct directory download of the fonts is denied with an .htaccess rule in the fonts directory. The physical location of your fonts is hidden with programatic access through an encoded link.

This module allows you to manage all your webfonts. The fonts are accessible for any theme you use and can be disabled for usage if you aren't using a particular font with the active theme. This module generates an @font-face stylesheet to display your fonts. This stylesheet link can be inserted into your themes with a template tag. If you a user of PyroCMS and this sounds like something you need, it is available on the PyroCMS store for $4.