---
title: "Installation"
manual: "Content Blocks"
version: "main"
permalink: "https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:extension-installation@main"
source: "Installation/Index.rst"
rendered: "2026-09-22T14:15:39+00:00"
---

# Installation {#extension-installation}

## Composer installations {#composer-installations}

```shell
composer require friendsoftypo3/content-blocks
```

## Classic mode {#classic-mode}

Activate the Content Blocks extension in the Extension Manager.

### Security {#security}

In classic mode it is important to deny access to the Content Blocks folder
by the webserver. For this a small adjustment to the standard TYPO3 .htaccess
file in the section "Access block for folders" is needed:

**apache**

**.htaccess.diff**

```diff
-RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ - [F]
+RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|ContentBlocks|Resources/Private|Tests?|Documentation|docs?)/ - [F]
```

**nginx**

**nginx configuration**

```diff
-location ~ (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ {
+location ~ (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|ContentBlocks|Resources/Private|Tests?|Documentation|docs?)/ {
     deny all;
 }
```
