Thursday, July 29th 2010, 1:28pm UTC+2

You are not logged in.

  • Login
  • Register

1

Monday, July 10th 2006, 6:01pm

.htaccess <Files> Directive - Problem mit "deny from all" für XML-Dateien

Hallo,

ich habe folgendes in der Config meines Vhosts

Source code

1
2
3
4
5
# Hier verbiete ich zuerst den Zugriff
<Directory /path/Beispiel>
   Order Deny,Allow
   Deny from All
</Directory>


Anschließend habe ich eine .htaccess Datei angelegt und diese in das Verzeichnis "Beispiel" gelegt. Hier der Inhalt meiner .htaccess Datei:

Source code

1
2
3
4
Options -MultiViews
<Files ~ "\.php\">
  allow from all
</Files>


Somit verbietet er den Zugriff auf alles außer PHP Dateien. Das Problem liegt jetzt darin, dass er aber trotzdem den Zugriff auf XML Dateien zulässt! ?( ?(
Greetz Andi

Mod Dewey

CREAKTIF - Comes soon

Google ist dein Freund :D
  • Go to the top of the page

undefined

Super Moderator

Posts: 4,248

Location: Germany

2

Monday, July 10th 2006, 7:39pm

Verweigere anderen den Zugriff und erlaube das Parsen

ActionScript-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<Directory /path/Beispiel>
   Options IncludesNoExec
   Allow Override none
   Order Deny,Allow
   Deny from All
   Allow from localhost

  <FilesMatch "\.(xml|html)$">
   Order Deny,Allow
   Deny from All
  </FilesMatch>

  <FilesMatch "\.(php|phtml)$">
    php_admin_flag   engine              On
  </FilesMatch>

</Directory>
Undefined Behavior (undefiniertes Verhalten) bedeutet meistens etwas ungültiges.
PHP Katepart - Speichenrechner - .htpasswd - RPM XDG Tool - Kcmnvview - QTidy
  • Go to the top of the page

3

Tuesday, July 11th 2006, 12:31pm

Danke dir! :)
Greetz Andi

Mod Dewey

CREAKTIF - Comes soon

Google ist dein Freund :D
  • Go to the top of the page