bootmortis / iran-hosted-domains

"Iran Hosted Domains" is a comprehensive list of Iranian domains and services that are hosted within the country.
MIT License
849 stars 106 forks source link

Ubuntu.com is in iran.dat:other #117

Closed Ali-Flt closed 1 year ago

Ali-Flt commented 1 year ago

I'm using the iran.dat database in my server (using xray core). I want to block all traffic to Iranian domains. Here is the xray config:

{
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "statsUserUplink": true,
        "statsUserDownlink": true
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private",
          "geoip:ir"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "domain": [
          "regexp:.*\\.ir$",
          "ext:iran.dat:other",
          "snapp", "digikala","tapsi", "blogfa", "bank", "sb24.com", "sheypoor.com", "tebyan.net", "beytoote.com", "telewebion.com", "Film2movie.ws", "Setare.com", "Filimo.com", "Torob.com", "Tgju.org", "Sarzamindownload.com", "downloadha.com", "P30download.com", "Sanjesh.org"
        ],
        "type": "field"
      }
    ]
  },
  "stats": {}
}

But when I open any link inside ubuntu.com it is blocked. Why is that? Is there a way to see the list of sites inside the .dat file?

Ali-Flt commented 1 year ago

I have checked the domains.txt file and ubuntu.com is included in the list.

bootmortis commented 1 year ago

Hey, thanks for sending in the report. I took care of the problem and got it fixed.