Advertisement
VanGans

Mass SEO Tools

Apr 19th, 2019
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.40 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. function getMoz($domain){
  4. $curl = curl_init();
  5. curl_setopt($curl, CURLOPT_URL, "http://www.scrolltotop.com/MozRank-Domain-Authority-Checker.php");
  6. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  7. curl_setopt($curl, CURLOPT_HEADER, false);
  8. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  9. curl_setopt($curl, CURLOPT_POSTFIELDS, "url_form=$domain");
  10. $exec = curl_exec($curl);
  11. curl_close($curl);
  12. preg_match_all('/<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><\/tr>/', $exec, $mpd);
  13. return "Moz Rank           : ".$mpd[4][0]."\nPage Authority     : ".$mpd[3][0]."\nDomain Authority   : ".$mpd[2][0]."\nBacklinks          : ".$mpd[5][0]."\n";
  14. }
  15. function getAlexa($domain){
  16. $curl = curl_init();
  17. curl_setopt($curl, CURLOPT_URL, "http://data.alexa.com/data?cli=10&dat=snbamz&url=$domain");
  18. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  19. curl_setopt($curl, CURLOPT_HEADER, false);
  20. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  21. $exec = curl_exec($curl);
  22. curl_close($curl);
  23. preg_match_all("/<POPULARITY URL=\"(.*?)\" TEXT=\"(.*?)\"/", $exec, $rank);
  24. preg_match_all("/<COUNTRY CODE=\"(.*?)\" NAME=\"(.*?)\" RANK=\"(.*?)\"/", $exec, $country);
  25. $getAlexx = "Global Rank        : ".$rank[2][0]."\nLocal Rank         : ".$country[3][0]."\nCountry            : ".$country[2][0]."\nCountry Code       : ".$country[1][0]."\n";
  26. $getKosong = "Global Rank        -: \nLocal Rank         : -\nCountry            : -\nCountry Code       : -\n";
  27. if(preg_match("/<POPULARITY/i", $exec)){
  28.   return $getAlexx;
  29. }else{
  30.   return $getKosong;
  31. }
  32. }
  33. function trafficCheck($domain){
  34. $curl = curl_init();
  35. curl_setopt($curl, CURLOPT_URL, "http://www.statshow.com/www/$domain");
  36. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  37. curl_setopt($curl, CURLOPT_HEADER, false);
  38. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  39. $exec = curl_exec($curl);
  40. curl_close($curl);
  41. preg_match_all("/<div id=\"box_1\" class=\"box_on\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $daily);
  42. preg_match_all("/<div id=\"box_2\" class=\"box_off\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $monthly);
  43. preg_match_all("/<div id=\"box_3\" class=\"box_off\">(.*?)<span class=\"red_bold\">(.*?)<\/span><br \/>(.*?)<span class=\"red_bold\">(.*?)<\/span>/", $exec, $yearly);
  44. return "Daily Page Views   : ".$daily[2][0]."\nDaily Visitors     : ".$daily[4][0]."\nMonthly Page Views : ".$monthly[2][0]."\nMonthly Visitors   : ".$monthly[4][0]."\nYearly Page Views  : ".$yearly[2][0]."\nYearly Visitors    : ".$yearly[4][0]."\n";
  45. }
  46. $banner = "
  47. Powered By VanGans
  48. $$$$$$\  $$$$$$$$\  $$$$$$\  
  49. $$  __$$\ $$  _____|$$  __$$\
  50. $$ /  \__|$$ |      $$ /  $$ |
  51. \$$$$$$\  $$$$$\    $$ |  $$ |
  52. \____$$\ $$  __|   $$ |  $$ |
  53. $$\   $$ |$$ |      $$ |  $$ |
  54. \$$$$$$  |$$$$$$$$\  $$$$$$  |
  55. \______/ \________| \______/\n";
  56. echo $banner."\n";
  57. echo "DOMAIN LIST: ";
  58. $url = trim(fgets(STDIN));
  59. $kontorus = file_get_contents($url);
  60. $urls = explode("\n", $kontorus);
  61.  echo "+================================+\n";
  62.  echo "         MASS SEO TOOLS           \n";
  63.  echo "+================================+\n";
  64. foreach ($urls as $domain) {
  65.  echo "Domain             : ".$domain."\n";
  66.  echo getAlexa($domain);
  67.  echo getMoz($domain);
  68.  echo trafficCheck($domain);
  69.  echo "+================================+\n";
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement