License Public Domain
Lines 9
apache (2) security (1) wordpress (1)
Owner: occam
Viewable by Everyone
Editable by All Siafoo Users
Easily highlight source code for your blog with our Syntax Highlighter. Join Siafoo Now or Learn More

Hardening Wordpress Atom Feed 0

In Brief In addition to the recommendations from Wordpress.... more
# 's
1    <Directory "/example/htdocs/wp-content/uploads/">
2 php_admin_flag engine off
3 </Directory>
4 <Directory "/example/htdocs/wp-content/themes/">
5 <Files *php>
6 Order allow,deny
7 Deny from all
8 </Files>
9 </Directory>

In addition to the recommendations from Wordpress.

Limit the amount of PHP files that a writable by Apache. The directory's and files that need to be writable, do not always need to be executed by PHP directly.

This makes it a bit harder for the attacker to upload and execute any PHP commands.