• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question How to configure ipv6 htaccess rule?

PHPBandit

New Pleskian
CentOS 7.3, Apache 2.4.6, Plesk 17.0.17

I found this article but it is not 100% clear as to how I could also ensure that certain addresses are denied.

IPv6 address in .htaccess is ignored

Currently have the following in .htaccess. I am looking to block all IPs except certain ipv4 and ipv6 addresses.

Code:
<RequireAll>
Require all denied
Require ip 1234:1234:1234::/48
Require ip 1234:1234:1234:1234::/32
Require ip 1.2.3.0/24
Require ip 4.5.0.0/16
</RequireAll>

Error log shows: client denied by server configuration

Can someone show me how that would translate please? Thank you
 
I am looking to block all IPs except certain ipv4 and ipv6 addresses.
Just use lines like

Code:
SetEnvIf Remote_Addr "IPv6_address1" realremoteaddr
SetEnvIf Remote_Addr "IPv6_address2" realremoteaddr
SetEnvIf Remote_Addr "IPv4_address1" realremoteaddr
SetEnvIf Remote_Addr "IPv4_address2" realremoteaddr
Allow from env=realremoteaddr
 
Back
Top