Jump to content

[Fix] whois .com.br %Permission Denied


Recommended Posts

Portuguese ----

 

Solução definitiva para o problema de busca de domínios via WHMCS usando classe oficial de busca de domínio fornecida pela registro.br

 

Baixem o classe isavail-0.2 oficial da Fapesp no link ftp://ftp.registro.br/pub/isavail/

 

1 - Abram o arquivo avail_client.php;

 

2 - Inserir na linha 2 $fqdn=$_GET["domain"];

 

3 - va a´te a linha 29 e altere-a para define(COOKIE_FILE, 'isavail-cookie.txt');

 

3 - Salve o arquivo

 

4 - Crie um arquivo texto de nome isavail-cookie.txt com o conteúdo inicial 00000000000000000000

 

5 - Envie os dois arquivos para o diretorio raiz (http://www.seudominio.com.br)

 

6 - Libere permissão total para o isavail-cookie.txt (CHMOD 777)

 

7 - Abra o arquivo do seu whmcs includes/whoisservers.php

 

8 - Ache a linha que começa com .com.br e altere-a para

.com.br|http://www.seudominio.com.br/avail_client.php?domain=|HTTPREQUEST-Available

 

9 - Salve e substitua o antigo.

 

 

English -------

 

Final solution for the problem with %Permission Denied response for domains .com.br search using the official class isavail supplied for registro.br

 

Download the class isavail-0.2 from Fapesp on link ftp://ftp.registro.br/pub/isavail/

 

1 -Open the file avail_client.php;

 

2 - Insert in line 2(two) $fqdn=$_GET["domain"];

 

3 -go to the line 29 and change to define(COOKIE_FILE, 'isavail-cookie.txt');

 

3 - Save the file

 

4 - Create a .txt file named isavail-cookie.txt with the content 00000000000000000000

 

5 - Send the files to the root folder (http://www.yourdomain.com.br)

 

6 - chage de permissions for isavail-cookie.txt (CHMOD 777)

 

7 - Openthe file includes/whoisservers.php in whmcs files

 

8 - Find the line with the begins .com.br and change for

.com.br|http://www.seudominio.com.br/avail_client.php?domain=|HTTPREQUEST-Available

 

9 - Save and overwrite the old one.

 

 

Regards

 

Danilo

Link to comment
Share on other sites

Wonderful post, Danilo! Thank you so much for sharing this. :)

 

One question: on step 2, by line 2 you mean the line right below "<?php" ?

An on step 8, that will have to be done for all br extensions as well, right?

 

Thank you for clearing this up.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 5 months later...
  • 4 weeks later...

Ola amigo.

 

Estou tendo problemas em executar o script conforme voce explicou.

 

O problema é que não consigo achar o .com.br no arquivo whoisservers.php poís está tudo encriptado. O que preciso fazer? E aproveitando gostaria de saber se você sabe como cadastrar também o restante dos domínios, como .com .net .org, etc..?

 

Obrigado.

 

Aguardo seu retorno.

 

Luiz Henrique

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated