Guif If
Guif If

Reputation: 595

Deny certain IP's

I need to deny certain IP's all access but I can't see any deny. I put this code on my ssl.conf inside label VirtualHost

<LocationMatch "/.*">
        Order Allow,Deny
        Allow from all
        SetEnvif X-Forwarded-For "93\.176\.144\.153" DenyAccess
        SetEnvif X-Forwarded-For "139\.162\.206\.138" DenyAccess
        Deny from env=DenyAccess
</LocationMatch>

Why not run correctly this configuration?

Thanks in advance

Upvotes: 0

Views: 42

Answers (1)

mars073
mars073

Reputation: 164

This method does not work? Even in an .htaccess file?

Order Allow,Deny
Allow from all
Deny from 93.176.144.153 139.162.206.138

Upvotes: 2

Related Questions