All IP addresses

Published on

Here’s the current list of IP addresses owned by the social network (“vkontakte”/“Вконтакте”):

CIDR Base address Netmask

You can use this list to block, unblock, or apply custom routing to the VK traffic.

Here is the Perl script I wrote to extract this information, in case you want to check whether this table is up-to-date or generate a similar table for a different website/company.

#!/usr/bin/perl -l

use strict;
use warnings;
use Net::Netmask;

my @inetnum;
my @ranges;

while (<>) {
  if (/^inetnum:\s*(\S+) - (\S+)$/) { @inetnum = (,); }
  if (/^mnt-by:\s*VKONTAKTE-NET-MNT$/) {
    push @ranges, range2cidrlist(@inetnum);

for my $cidr (cidrs2cidrs(@ranges)) {
  print $cidr, "\t", $cidr->base(), "\t", $cidr->mask();

Usage (if you saved the script as

zcat ripe.db.inetnum.gz | perl