Please Support Us, By White-Listing/Unblock us from your Ads-Block Programs so We Could keep Run This site For Free. We Promise that Our Advertisement Never Block Your Ways. Thank You So Much !!!


Creating Bulk Domain Authority Checker with Simple PHP

06/28/2017 1:54 PM by Ellys Kho in How to

As you know today Domain Authority becomes an important aspect for webmaster and we knew higher domain authority websites hold more quality than the lower domain authority, Every day thousands of people keep using Domain Authority Checker tool to check their websites, so ever you think how to make your own tool? Today is about "How to create Bulk Domain Authority Checker" complete code using simple PHP, HTML and Moz API.

Moz team said Domain Authority algorithm or widely known as DA created based: the prestige of the sites, the relevance and quality of the information on the sites, keywords difficult, how many incoming backlinks to the sites, and with over than 40 factors included, the Domain Authority score come up from 0 as lowest and 100 as the highest score. They said to gain Domain Authority score from 0 to 40 is an easy task but, when increasing your domain authority from 41 to 100 is very hard task to do.

PHP Code For Bulk Domain Authority Checker

To create Bulk Domain Authority Checker, the first thing you need is Generate Moz API " Access ID" and "Secret Key" and for note, Moz API is free to use but you require to link back them Rel Nofollow or Dofollow is up to you:

API Key for your Domain Authority Checker

after you generate your own credentials now you need to create PHP file for Bulk Domain Authority Checker (test.php) and paste all PHP code below this into a file:

if ($_REQUEST['domains'] and $_REQUEST['action'] == 'getda') {
	$accessID		= "Moz API Access ID";
	$secretKey		= "Moz API Secret Key";
	$expires		= (time() + 300);
	$stringToSign		= $accessID . "\n" . $expires;
	$binarySignature	= hash_hmac('sha1', $stringToSign, $secretKey, true);
	$urlSafeSignature	= urlencode(base64_encode($binarySignature));
	$cols			= "68719476740";
	$requestUrl		= "" . $cols . "&AccessID=" . $accessID . "&Expires=" . $expires . "&Signature=" . $urlSafeSignature;
	$objectURL		= $_REQUEST['domains'];
	$encodedDomains		= explode("\n", $objectURL);
	$encodedDomains		= array_unique($encodedDomains);
	$encodedDomains		= array_filter($encodedDomains);
	$encodedDomains		= json_encode($encodedDomains);
	$options		= array(CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => $encodedDomains);
	$ch			= @curl_init($requestUrl);
	@curl_setopt_array($ch, $options);
	$content		= @curl_exec($ch);
	$contents		= json_decode($content);
	$cnt			= 0;
	foreach($contents as $key => $val) {
		$domains[$cnt]['d']	= preg_replace('/\/$/', '', $val->uu);
		$domains[$cnt]['a']	= $val->pda;
	$json['D']			= $domains;
	$json['T']			= sizeof($domains);
	$json				= json_encode($json);
	echo $json;

after place this PHP code into your test.php file now you need put this javascript to process the bulk domain authority checker and place the javascript between <head> </head> tag in your PHP file:

<script src="//"></script>
<script type="text/javascript">
$(document).ready(function() {
	var domain, t, i;
	$("#bl").submit(function() {
		domains		=;
		i			= 0;
		t			= 1;
			url:			"index.php?action=getda&domains=" + encodeURIComponent(domains),
			dataType:		"json",
			beforeSend:		function(){$("#rs").html('PUT YOUR PROCESS IMAGE HERE');},
			success:		function(d){
										t	= d['T'];
										if (t == 0) {
											$("#rs").html('Value for ' + domain + ': 0');
											return false;
										else {
											data	= d['D'];
											$("#rs").html('<table class="gradienttable"><tr><th><p>#</p></th><th><p>Domain</p></th><th><p>Domain Authority</p></th></tr></table>');
			error:			function(){ $("#rs").html('<strong>ERROR:</strong> Please try again later');}
		return false;
	function getdata(d) {
		if (i < t) {
			$("#rs table").append('<tr><td><p>' + eval(i + 1) + '</p></td><td><p>' + d[i]['d'] + '</p></td><td><p>' + d[i]['a'] + '</p></td></tr>');
		return false;

and the last stage thing is, create the input form and the result table form for the bulk domain authority checker:

<form name="bl" id="bl" role="form">
	<label for="domains"><b>Domains</b></label><br/>
	<textarea id="domains" name="domains" rows="4" cols="50" style="width:100%;"></textarea><br/>
	<input type="submit" name="submit" value="Check" />
<div id="rs" style="height:auto;overflow:auto"></div>

for the result and, input form you also can add CSS for styling to make it more beautiful.

Useful Link to Create Bulk Domain Authority Checker


leave a comment
Please post your comments here.

The Influence of the Search Engine Optimization on your moving business
Posted By Monica Smithers | Oct 12, 2017
Important Element Before you Designing your Web
Posted By Ellys Kho | Jul 19, 2017
Rewrite Articles with Article Rewriter tool?
Posted By Ellys Kho | Jul 19, 2017
Free Classifieds Sites List Without Registration
Posted By Ellys Kho | Jul 19, 2017
Installing WordPress & phpMyAdmin on Ubuntu 14.04 server
Posted By Ellys Kho | Jul 19, 2017
Search Engines Submission Sites List 2017
Posted By Ellys Kho | Jul 17, 2017
Why use Md5 hash generator?
Posted By Ellys Kho | Jul 10, 2017
Is Checking The Domain Name Age something important?
Posted By Ellys Kho | Jul 10, 2017

Ellys's Sponsors

Blog Directory

Web Statistics

Get your Website Analysis and Statistics, just input your URL below to get it free.

Powered by Web Statistics