Skip to content

a simple, lightweight view written in python django to check whois

Notifications You must be signed in to change notification settings

momhiar/django-whois-jsonResponse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

django-whois-jsonResponse

a simple, lightweight view written in python django to check whois

really simple and useful when you wanna create a Domain availability check with json it uses POST method and simply redirects GET requests to an address you want, check views.py

NOTE: .ir domains have an issue : if you encounter an error it results True anyway.

request method: POST method no csrf needed with a json body with blow syntax:

{
  "domain_name": "YOUR_DESIRED_DOMAIN_NAME",
  "tld": ".com"
}

there is responses based on blow syntax:

{
 "result": "{result}",
 "domain": "YOUR_DESIRED_DOMAIN_NAME.tld"
}

results:

"True" if domain is available

"False" if domain is not available

"socket" if backend encounters an error

About

a simple, lightweight view written in python django to check whois

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages