Scriptease - Codesnippets

htaccess: PHP in HTML ausführen

Um in HTML Dateien PHP auszuführen ist folgende Angabe in der htaccess Datei nötig:

AddType application/x-httpd-php php php4 php3 html htm
Hinzugefügt von Pixelaner in htaccess | Keine Kommentare
Tags: , ,

directory browsing verhindern

.htaccess:

Options All -Indexes
Hinzugefügt von Pixelaner in htaccess | Keine Kommentare


htaccess Dateiupload beschränken

LimitRequestBody 10240000
Hinzugefügt von Pixelaner in htaccess | Keine Kommentare


htaccess Datei schützen

<files .htaccess>
  order allow,deny
  deny from all
</files>
Hinzugefügt von Pixelaner in htaccess | Keine Kommentare


WordPress Spammer per .htaccess aussperren

<Limit GET POST>
  order allow,deny
  deny from 000.000.000.000
  allow from all
</Limit>
Hinzugefügt von Pixelaner in htaccess, Wordpress | 1 Kommentar
Tags: , ,