How to block IPv6 IP addresses in .htaccess

Apache: How to block IPv6 IP addresses in .htaccess

Blocking IPv6 IP addresses is the same as blocking IPv4 addresses in .htaccess

  1. Deny from 2001:0db8:85a3:0000:0000:8a2e:0370:7334

webdevetc profile pic

I am a 29 year old backend web developer from London, mostly focusing on PHP and Laravel lately. This ( is my blog where I write about some web development topics (PHP, Laravel, Javascript, and some server stuff). contact me here.


Comments and discussion about How to block IPv6 IP addresses in .htaccess

Found this interesting? Maybe you want to read some more in this series?

Or see other topics in the Apache language

Or see other languages/frameworks:
PHP Laravel Composer Apache CentOS and Linux Stuff WordPress General Webdev and Programming Stuff JavaScript
Or see random questions

Is multiple inheritance supported in PHP?

How to find the intersection (same values) from two arrays?

How to add the CSRF (Cross-site request forgery) token in Laravel?

How to make multiple routes share the same URL structure or URL parameters

How to add the default charset to UTF-8 in .htaccess

What is the difference between ( for ... in ) and ( for ... of ) in javascript?

An overview of every main PHP array function

What is the difference between var, let and const in Javascript?

How to generate an array for a dropdown (with ['key' => 'value']) suitable for a dropdown, from a Laravel collection of Eloquent objects?

How to reverse htmlentities() / What is the opposite of htmlentities()?