IP Sperren

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

@Scory

Postby nathaniells freak » 22. February 2008 15:18

Nein das habe ich nicht ausprobiert. Da hast du recht. Und ich bin nicht zu Feige das zu zu geben.

Was du aber wieder nicht gemacht hast ist einfach mal zu sagen hier ein Stück Code das muss da un da rein!!

Erklär mir doch mal lieber wie das in die Datei httpd.conf soll und lass dich doch nicht so darüber aus.

Habe dazu was in der phpMyAdmin.conf gefunden vom Linux boín mir aber nicht sicher wo das hin muss und ob diese Form so korrekt ist!!

Code aus der Datei phpMyAdmin.conf:
-----------------------------------------------------
Code: Select all
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

Alias /phpMyAdmin /etc/httpd/conf.d/phpMyAdmin
<Directory /etc/httpd/conf.d/phpMyAdmin>
   order deny,allow
   deny from all
   allow from 127.0.0.1
</Directory>

# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
<Directory /etc/httpd/conf.d/phpMyAdmin/libraries>
    Order Deny,Allow
    Deny from All
    Allow from None
</Directory>

# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc.  This may break your mod_security implementation.
#
#<IfModule mod_security.c>
#    <LocationMatch "/phpMyAdmin/(.+)">
#        SecFilterInheritance Off
#    </LocationMatch>
#</IfModule>

-----------------------------------------------------


Cu MIcha
nathaniells freak
 
Posts: 19
Joined: 20. February 2008 11:34

Test

Postby nathaniells freak » 22. February 2008 15:46

Habe das ganze getestet und in einer äquivalenten Form in die Datei httpd.conf eingetragen. Aber das ganze will nicht richtig. Er verweigert mir ab dann immer den Zugriff auf das Verzeichniss.

Ist eventuell ein doppelter Pfadd gesetzt der stört??

Weiss jemand Rat?

Cu MIcha

PS bin ab Montag wieder Online
nathaniells freak
 
Posts: 19
Joined: 20. February 2008 11:34

htdocs sperren

Postby nathaniells freak » 25. February 2008 11:06

Ich habe jetzt aus den htdocs das Verzeichniss phpMyAdmin gelöscht und versucht ein Alias einzurichten in der Datei httpd.conf.

Das ist leider gescheitert, da der Apache den Alias als gesperrt darstellt, obwohl in der Datei steht, das er für x.x.x.61 und x.x.x.90 erlaubt ist.

Dann habe ich eine config Datei Includiert:
Code: Select all
# einbinden von phpMyAdmin
Include conf/extra/phpMyAdmin-http.conf


Und der Inhalt der Datei ist:

Code: Select all
Alias /phpMyAdmin "C:/xampp/phpMyAdmin/"

<Directory "C:/xampp/phpMyAdmin/">
   #DirectoryIndex index.php
   #Options Indexes Includes ExecCGI
   #AllowOverride None
   Order allow,deny
   Allow from 127.0.0.1
   Allow from 10.0.0.61
   Allow from 10.0.0.90
   #Deny from All
</Directory>


Er findet den Alias nicht! Weiss Jemand Warum oder hat eine Ahnung Warum!?


Außerdem wollte ich htdocs sperren in der Konfigurationsdatei httpd.conf:
Code: Select all
<Directory "C:/xampp/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #

    Options Indexes FollowSymLinks Includes ExecCGI
   
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #

    AllowOverride None


    #
    # Controls who can get stuff from this server.
    #

    Order deny,allow
    #Deny from all
    Allow from 127.0.0.1
    Allow from x.x.x.61
    Allow from x.x.x.90
</Directory>


Wenn ich aber Deny from All nicht auskommentiere bekommt niemand Zugriff, noch nicht einmal die Ausnahme IPs wie die 61 und die 90.

Warum?

Kann mir bitte jemand weiter helfen!!

Cu Micha
nathaniells freak
 
Posts: 19
Joined: 20. February 2008 11:34

Previous

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 61 guests