Stefan Bach: htaccess, Domain erlauben

Beitrag lesen

Hallo,

Ich will einen Ordner meiner Website nur mir zugänglich machen, als Identifikation soll meine IP dienen, die über xxx.dyndns.tv erreichbar ist.

Das hat leider nicht geklappt, vermutlich weil der Hostname zu meiner IP .t-tialin.net lautet.

Nicht nur vermutlich. Wenn du die Doku liest, dann weißt du es mit Sicherheit:

http://httpd.apache.org/docs/mod/mod_access.html#allow
A (partial) domain-name

Example: Allow from apache.org
Hosts whose names match, or end in, this string are allowed access.
Only complete components are matched, so the above example will match
foo.apache.org but it will not match fooapache.org. This configuration
will cause the server to perform a reverse DNS lookup on the client IP
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
address, regardless of the setting of the HostnameLookups directive.

Wieso regelst du den Zugriff nicht einfach über ein Passwort?

Viele Grüße,

Stefan