Zum Inhalt springen

Empfohlene Beiträge

Geschrieben

Hi,

wie kann ich Apache so einstellen das er nur anfragen von

einer bestimmte IP annehmen soll ??

mit "Listen 127.0.0.0:80" geht schonmal nicht, wenn ich das so mache wird der apache garnicht mehr gestartet.

danke

gruß

MadCro

:marine

Geschrieben

Hi,

das geht auch mit htaccess.

<Directory /docroot>

Order Deny,Allow

Deny from all

Allow from xxxx

</Directory>

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.

A full IP address

Example: Allow from 10.1.2.3

An IP address of a host allowed access

A partial IP address

Example: Allow from 10.1

The first 1 to 3 bytes of an IP address, for subnet restriction.

A network/netmask pair

Example: Allow from 10.1.0.0/255.255.0.0

A network a.b.c.d, and a netmask w.x.y.z. For more fine-grained subnet restriction. (Apache 1.3 and later)

A network/nnn CIDR specification

Example: Allow from 10.1.0.0/16

Similar to the previous case, except the netmask consists of nnn high-order 1 bits. (Apache 1.3 and later)

Gruß Jaraz

Geschrieben
Originally posted by MadCro

mit "Listen 127.0.0.0:80" geht schonmal nicht, wenn ich das so mache wird der apache garnicht mehr gestartet.

Klar, daß das nicht geht. Müßte heißen Listen 127.0.0.1:80. Bei mir funktioniert's so ohne Probleme. Oder war das oben nur ein Tupfehler? :rolleyes:

Dein Kommentar

Du kannst jetzt schreiben und Dich später registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefügt.   Formatierung wiederherstellen

  Nur 75 Emojis sind erlaubt.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor leeren

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...