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
webdevetc

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



More...


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

How to check if an object or variable is an array, in JS?

How to get the last character of a string in JS?

How to select what columns to return when calling ::all()

How to use Anonymous classes in PHP 7?

How to check if a object has a static variable defined?

How to check if two strings are anagrams in PHP?

How to use subdomains as parameters in your routes (or in your web.php file)

How to replace whitespace with a single space

How to find an item by Primary Key in Eloquent, or throw a ModelNotFoundException exception if it isn't found?

How to add a name prefix to all routes in a group?