OT: Blocking IP range in apache2 ubuntu server
antonio at antoniocordero.com
antonio at antoniocordero.com
Wed Jan 16 15:24:33 UTC 2008
Maybe :
deny from 193.200.0.0/255.255.0.0
Have a nice day,
Antonio
> I'm having problems blocking an IP range in the default Apache setup in
> Ubuntu server edition.
> I'm neither a Linux or Apache guru but from searching I have come to the
> conclusion that I put the IP's I want blocked into the file:
> /etc/apache2/sites-available/default
>
> This is what I have in there:
> <Directory /var/www/>
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> allow from all
> deny from 193.200.0.0
> deny from 85.195.0.0
> # This directive allows us to have apache2's default
> start page
> # in /apache2-default/, but still have / go to the right
> place
> #RedirectMatch ^/$ /apache2-default/
> </Directory>
>
> IP's are dummy IP's for testing, but I want to block the entire range of
> 193.200.
> How do I accomplish this and am I even in the correct file.
>
> I also understand that you shouldn't use .htaccess files unless you
> don't have access to
> /etc/apache2/sites-available/default which I do have access to.
> Any help would surely be appreciated.
>
> Craig
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list