Beitrag
von Kristian » 01.07.2006, 20:36
Hallo
Ich lese mal vor:
#---------------------------------------------------------------------------------------
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)
Note that the last three examples above match exactly the same set of hosts.
#---------------------------------------------------------------------------------------
The arguments for the Deny directive are identical to the arguments for the Allow directive.
#---------------------------------------------------------------------------------------
Habe ich das jetzt falsch verstanden?
Die Version:
Deny from 88.198.0.0/16
gefällt mir zwar auch am besten, aber da alle drei (letzten) das Gleiche ergeben ist es wohl - so wie von meinkind geschrieben - am einfachsten.
Sonst müsste man ja wissen, dass die /16 sagt, dass die letzten 16 bits sprich 2 bytes sprich 2x Werte zwischen 0 und 255, zu guter Letzt also das 0.0 am Ende zu ignorieren sind uns das klingt doch sehr kompliziert.
Gruss Kristian
Seo-Check Biete Links zu Schmuck und Hochzeit sowie Artikelplätze für Firmen allgemein.