Ir para conteúdo
  • Cadastre-se

Bloqueando o acesso de outros países.


pindel

Posts recomendados

Olá, esse meu post, não tem a intenção de ser nem TUTORIAL, nem GUIA, nem nada parecido...

 

Apenas, quero discutir sobre a viabilidade e efetividade das idéias abaixo.

 

Não acho que esse seja o primeiro ou o único post sobre o assunto, logo, pesso desculpas se repeti o assunto.

 

===

 

Eu estava pensando, se vou colocar um server na internet, porque ele precisa ser para o mundo inteiro?

 

Desde quando um adolescente nos cafundós do Judas lá nas entranhas do Turcomenistão vai me fazer Donate? Vai coisa nenhuma!

 

E começei a procurar na net, sobre bloquear países... E achei esse blog, que do ponto de vista técnico, é ótimo:

 

O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

Então você procura uma coisa, e acha outra... e outra...

 

Não tenho muita experiência ainda em servers de L2J, nem WAMP, nem nada...

 

Mas descobri que o WAMP Server e similares, podem bloquear o acesso para um determinado ip, de um determinado país.

 

Então, será que dá pra bloquear tudo, e liberar somente o Brasil?

 

Esse conceito, não vai impedir que hackers brasileiros não deixem de fazer uma visitinha de vez em quando...

 

Mas não seria melhor, se num primeiro momento, os hackers de fora, ficassem longe do server?

 

Acredito, que se o cara tenha conhecimento, isso não seja problema, ele saberá burlar isso...

 

E se o investimento em conhecimento e edição de algumas linhas de código em algum .ini ou .txt da vida fosse pequeno? Não valeria a pena?

 

Achei o site

O conteúdo está oculto, favor efetuar login ou se cadastrar!
que fornece as configurações para fazer um .htaccess que bloqueia o acesso a um determinado país...

 

Então a lógica é simples, ele bloqueia alguma coisa, tipo o ip 10.20.30.40, e libera o resto.

 

Vou no site, peço para ele gerar um .htaccess bloqueando o Brasil, então eu tenho um documento, com todos os IPs possíveis de usuários brasileiros, e faço o inverso.

 

Libero os IPs brasileiros, e bloqueio o resto.

 

======

order allow,deny

deny from all

allow from 139.82.0.0/16

allow from 143.54.0.0/16

allow from 143.106.0.0/16

allow from 143.107.0.0/16

allow from 143.108.0.0/16

allow from 144.23.0.0/16

allow from 146.134.0.0/16

allow from 146.164.0.0/16

allow from 147.65.0.0/16

allow from 150.161.0.0/16

allow from 150.162.0.0/16

allow from 150.163.0.0/16

allow from 150.164.0.0/16

allow from 150.165.0.0/16

allow from 152.84.0.0/16

allow from 152.92.0.0/16

allow from 155.211.0.0/16

allow from 157.86.0.0/16

allow from 161.24.0.0/16

allow from 161.79.0.0/16

allow from 161.148.0.0/16

allow from 164.41.0.0/16

allow from 164.85.0.0/16

allow from 170.66.0.0/16

allow from 189.0.0.0/11

allow from 189.32.0.0/11

allow from 192.80.209.0/24

allow from 192.111.229.0/24

allow from 192.111.230.0/24

allow from 192.132.35.0/24

allow from 192.146.157.0/24

allow from 192.146.229.0/24

allow from 192.147.210.0/24

allow from 192.147.218.0/24

allow from 192.153.88.0/24

allow from 192.153.120.0/24

allow from 192.153.155.0/24

allow from 192.159.116.0/24

allow from 192.159.117.0/24

allow from 192.160.45.0/24

allow from 192.160.50.0/24

allow from 192.160.111.0/24

allow from 192.160.128.0/24

allow from 192.160.188.0/24

allow from 192.188.11.0/24

allow from 192.190.30.0/24

allow from 192.190.31.0/24

allow from 192.195.237.0/24

allow from 192.198.8.0/21

allow from 192.207.194.0/24

allow from 192.207.195.0/24

allow from 192.207.200.0/24

allow from 192.207.201.0/24

allow from 192.207.202.0/24

allow from 192.207.203.0/24

allow from 192.207.204.0/24

allow from 192.207.205.0/24

allow from 192.207.206.0/24

allow from 192.223.64.0/18

allow from 192.231.114.0/23

allow from 192.231.116.0/22

allow from 192.231.120.0/23

allow from 192.231.175.0/24

allow from 192.231.176.0/24

allow from 198.12.32.0/19

allow from 198.17.120.0/23

allow from 198.17.231.0/24

allow from 198.17.232.0/24

allow from 198.49.128.0/22

allow from 198.49.132.0/23

allow from 198.50.16.0/21

allow from 198.58.8.0/22

allow from 198.58.12.0/24

allow from 198.184.161.0/24

allow from 200.0.8.0/21

allow from 200.0.32.0/20

allow from 200.0.48.0/21

allow from 200.0.56.0/22

allow from 200.0.60.0/23

allow from 200.0.67.0/24

allow from 200.0.68.0/24

allow from 200.0.69.0/24

allow from 200.0.70.0/24

allow from 200.0.71.0/24

allow from 200.0.72.0/24

allow from 200.0.81.0/24

allow from 200.0.85.0/24

allow from 200.0.86.0/24

allow from 200.0.87.0/24

allow from 200.0.89.0/24

allow from 200.0.90.0/23

allow from 200.0.92.0/24

allow from 200.0.93.0/24

allow from 200.0.100.0/23

allow from 200.0.102.0/24

allow from 200.0.114.0/24

allow from 200.3.16.0/20

allow from 200.5.9.0/24

allow from 200.6.35.0/24

allow from 200.6.36.0/23

allow from 200.6.38.0/24

allow from 200.6.39.0/24

allow from 200.6.40.0/24

allow from 200.6.41.0/24

allow from 200.6.42.0/24

allow from 200.6.43.0/24

allow from 200.6.44.0/24

allow from 200.6.45.0/24

allow from 200.6.46.0/24

allow from 200.6.47.0/24

allow from 200.6.48.0/24

allow from 200.6.128.0/22

allow from 200.6.132.0/23

allow from 200.7.0.0/22

allow from 200.7.8.0/23

allow from 200.7.10.0/23

allow from 200.7.12.0/24

allow from 200.7.13.0/24

allow from 200.9.0.0/23

allow from 200.9.2.0/24

allow from 200.9.65.0/24

allow from 200.9.66.0/24

allow from 200.9.67.0/24

allow from 200.9.68.0/24

allow from 200.9.69.0/24

allow from 200.9.70.0/24

allow from 200.9.71.0/24

allow from 200.9.76.0/24

allow from 200.9.77.0/24

allow from 200.9.84.0/24

allow from 200.9.85.0/24

allow from 200.9.86.0/24

allow from 200.9.87.0/24

allow from 200.9.88.0/24

allow from 200.9.89.0/24

allow from 200.9.90.0/23

allow from 200.9.92.0/24

allow from 200.9.93.0/24

allow from 200.9.94.0/24

allow from 200.9.95.0/24

allow from 200.9.102.0/24

allow from 200.9.103.0/24

allow from 200.9.104.0/24

allow from 200.9.105.0/24

allow from 200.9.106.0/24

allow from 200.9.107.0/24

allow from 200.9.112.0/24

allow from 200.9.113.0/24

allow from 200.9.114.0/24

allow from 200.9.116.0/24

allow from 200.9.117.0/24

allow from 200.9.118.0/23

allow from 200.9.120.0/24

allow from 200.9.121.0/24

allow from 200.9.123.0/24

allow from 200.9.124.0/24

allow from 200.9.125.0/24

allow from 200.9.126.0/24

allow from 200.9.127.0/24

allow from 200.9.129.0/24

allow from 200.9.130.0/24

allow from 200.9.131.0/24

allow from 200.9.132.0/24

allow from 200.9.133.0/24

allow from 200.9.134.0/24

allow from 200.9.135.0/24

allow from 200.9.136.0/23

allow from 200.9.138.0/24

allow from 200.9.139.0/24

allow from 200.9.140.0/24

allow from 200.9.143.0/24

allow from 200.9.144.0/24

allow from 200.9.148.0/24

allow from 200.9.149.0/24

allow from 200.9.158.0/23

allow from 200.9.160.0/22

allow from 200.9.164.0/24

allow from 200.9.169.0/24

allow from 200.9.170.0/23

allow from 200.9.172.0/23

allow from 200.9.174.0/24

allow from 200.9.175.0/24

allow from 200.9.181.0/24

allow from 200.9.182.0/24

allow from 200.9.183.0/24

allow from 200.9.184.0/24

allow from 200.9.185.0/24

allow from 200.9.186.0/24

allow from 200.9.199.0/24

allow from 200.9.200.0/24

allow from 200.9.202.0/24

allow from 200.9.203.0/24

allow from 200.9.206.0/24

allow from 200.9.207.0/24

allow from 200.9.214.0/24

allow from 200.9.220.0/22

allow from 200.9.224.0/24

allow from 200.9.226.0/24

allow from 200.9.229.0/24

allow from 200.9.234.0/24

allow from 200.9.249.0/24

allow from 200.9.250.0/23

allow from 200.9.252.0/24

allow from 200.10.4.0/22

allow from 200.10.32.0/20

allow from 200.10.48.0/21

allow from 200.10.56.0/22

allow from 200.10.132.0/22

allow from 200.10.136.0/24

allow from 200.10.137.0/24

allow from 200.10.138.0/24

allow from 200.10.141.0/24

allow from 200.10.144.0/24

allow from 200.10.146.0/24

allow from 200.10.153.0/24

allow from 200.10.154.0/24

allow from 200.10.156.0/24

allow from 200.10.157.0/24

allow from 200.10.158.0/24

allow from 200.10.159.0/24

allow from 200.10.163.0/24

allow from 200.10.164.0/24

allow from 200.10.173.0/24

allow from 200.10.174.0/23

allow from 200.10.176.0/24

allow from 200.10.177.0/24

allow from 200.10.178.0/23

allow from 200.10.180.0/23

allow from 200.10.183.0/24

allow from 200.10.185.0/24

allow from 200.10.187.0/24

allow from 200.10.189.0/24

allow from 200.10.191.0/24

allow from 200.10.192.0/23

allow from 200.10.209.0/24

allow from 200.10.210.0/24

allow from 200.10.227.0/24

allow from 200.10.245.0/24

allow from 200.11.0.0/21

allow from 200.11.8.0/21

allow from 200.11.16.0/21

allow from 200.11.24.0/22

allow from 200.11.28.0/24

allow from 200.12.0.0/21

allow from 200.12.8.0/21

allow from 200.12.131.0/24

allow from 200.12.139.0/24

allow from 200.12.157.0/24

allow from 200.13.8.0/21

allow from 200.14.32.0/23

allow from 200.14.35.0/24

allow from 200.14.36.0/24

allow from 200.17.0.0/16

allow from 200.18.0.0/15

allow from 200.20.0.0/16

allow from 200.96.0.0/13

allow from 200.128.0.0/9

allow from 201.0.0.0/12

allow from 201.16.0.0/12

allow from 201.32.0.0/12

allow from 201.48.0.0/12

allow from 201.64.0.0/11

allow from 206.221.80.0/20

======

 

Então edit o httpd.conf, e procura o item "# onlineoffline tag - don't remove", e insiro o código acima.

 

Fiz isso com um ip interno aki da lan, e deu certinho.

 

Agora, segundo passo, bloquear o resto do mundo no servidor de login do Lineage?

 

Bem, a revisão que eu uso atualmente, é a [Hellboud] do [LordBuster], e achei um arquivo chamado "banned_ip.cfg" em C:\Server\LoginServer\config, retirei os "allow from" da lista acima, e ficou somente os IPs, inseri no "banned_ip.cfg".

 

Essa ultima configuração, de inserir esses IPs no meu "banned_ip.cfg", pra mim não deu certo, pois como estou fazendo tudo de rede local, eu acredito que haja algum conflito com relação "server.properties", pois pra mim com um IP da rede local, não funcionou.

 

Essas ideias funcionam? Alguém ja testou?

 

Pindel

01001010101001010100101010101001001011101011111010100001<br1>

00001000010101000010001010000010000101000000000100010010<br1>

1011011011101111110111011101101100000000000000000 Error loading...

Link para o comentário
Compartilhar em outros sites


  • 7 meses depois...

Sei não, têm que ver seus pro-s e contras, isto ai seria bom para servers pvp, reduziriam o lag e talz, gringo não gosta muito de server pvp e os que gostam concerteza não iriam doar, agora um server low com tão bloqueio, um server grande fica sem sentido, e muitos players brs tbm quando vêem que um server é acessado por outros países, fica mais intereçado em jogar.

XuinZ.jpg?8595

Link para o comentário
Compartilhar em outros sites

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.




×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.