Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 20.05.08 00:21 
Hi,

ich würd gern in einem verzeichnis auf meinem server nur eine gewisse ip-range zulassen.

Und zwar diese hier:

ausblenden Quelltext
1:
2:
3:
CIDR Notation     IP-Range from     to
217.65.128.0/0     217.65.128.0     217.65.143.255
85.255.16.0/20     85.255.16.0     85.255.31.255


Wenn ich das in der .htaccess so eintrage:

ausblenden Quelltext
1:
2:
3:
4:
order deny,allow
deny from all
allow from 217.65.128.0/0
allow from 85.255.16.0/20


kommt ein Internal Server Error:

Zitat:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, xxx and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Wenn ich die erste allow-zeile auskommentiere geht es... ich denke mal, die CIDR ist irgendwie falsch :/

Hat da wer ne ahnung von zufällig?

Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!


Zuletzt bearbeitet von Aya am Di 20.05.08 00:30, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 20.05.08 00:27 
Moin!

user profile iconAya hat folgendes geschrieben:
ausblenden Quelltext
1:
2:
3:
CIDR Notation     IP-Range from     to
217.65.128.0/0     217.65.128.0     217.65.143.255
85.255.16.0/20     85.255.16.0     85.255.31.255

[...]
Wenn ich die erste allow-zeile auskommentiere geht es... ich denke mal, die CIDR ist irgendwie falsch :/
0 Bits Subnetmask kann ja bei dieser Range nicht sein, wohl eher 12? :nixweiss:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 20.05.08 00:29 
Jep, sowas dacht ich auch... aber wie kommst du auf 12?

_________________
Aya
I aim for my endless dreams and I know they will come true!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 20.05.08 00:31 
Moin!

user profile iconAya hat folgendes geschrieben:
aber wie kommst du auf 12?
Schreib die Bytes mal binär auf... ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Di 20.05.08 01:45 
user profile iconNarses hat folgendes geschrieben:
user profile iconAya hat folgendes geschrieben:
ausblenden Quelltext
1:
217.65.128.0     217.65.143.255					

wohl eher 12? :nixweiss:
Wohl eher 20, bzw 255.255.240.0.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 20.05.08 01:50 
user profile icontommie-lie hat folgendes geschrieben:
Wohl eher 20, bzw 255.255.240.0.
Äh :? meinte ich auch... :oops: noch dazu steht´s direkt dadrunter :autsch:

_________________
There are 10 types of people - those who understand binary and those who don´t.