Use prism for code syntax highlighting

This commit is contained in:
Oliver Davies 2017-03-16 08:09:52 +00:00
parent 356c9dca43
commit adf3c67355
54 changed files with 471 additions and 324 deletions

View file

@ -14,14 +14,16 @@ Rather than delete these files or change the file permissions manually for each
{% endblock %}
{% block content %}
When you download [Drupal](http://drupal.org/project/drupal), there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially CHANGELOG.txt as that includes the exact version of Drupal you are running and could therefore have security implications.
When you download [Drupal](http://drupal.org/project/drupal), there are several text files that are placed in the root of your installation. You don't want or need these to be visible to anyone attempting to view them in a browser - especially `CHANGELOG.txt` as that includes the exact version of Drupal you are running and could therefore have security implications.
Rather than delete these files or change the file permissions manually for each file, I can add the following lines into my VirtualHost configuration:
<Files ~ "\.txt$">
Order deny,allow
Deny from all
</Files>
```language-apacheconf
<Files ~ "\.txt$">
Order deny,allow
Deny from all
</Files>
```
This prevents any files with a .txt extension from being accessed and rendered in a web browser.
{% endblock %}