You are currently browsing the category archive for the ‘phpredefine’ category.

Today I searched in Google with the ‘ampminsure‘ keyword and I found a result which makes me stunned. Check the n0. 7th link. I found a site is using all the information from ampminsure and also using ampminsure template.
After reading many articles I came to know this is actually a hijacking website.
Yes AmPmInsure is Hijacked by SteadyEarning site and using all the articles of ampminsure.

See I am presenting these two sites’ snap shot, seeing both of the sites you will not find any difference. Steady Earning even uses the AmPmInsure logo. They have just changed the name written on logo.

AmpmInsure

AmPmInsure Site Screen Shot

steady.gif

SteadyEarning Site Screen Shot

If this type of crime is committed by any website and appears among the search results, then who will be the responsible Google or the site who are doing illegal activities ?

Ohhhh! again the same question arises on the google search engine developer, just as I mentioned in my last post.

I read some blog post about this lemme share with you….

http://www.webmasterworld.com/forum44/522.htm
http://www.webmasterworld.com/google/3184965.htm
http://clsc.net/research/google-302-page-hijack.htm

Advertisements

My colleague today, showed me her scrap book on Orkut. She has received a spam which has no name, no avatar. This user can be answered from the quick reply but we cannot visit the home page.

This is the screen shot of the scrap book ->

Orkut smart spammer


Is this a Google failure or user intelligence? What does Google say?

Have you interest to install who is lookups on domain names. Here is an exciting php script you need to install.

Steps to install.

1.

<?php
function whois ($query, $server = “whois.internic.net”) {
$handle = fsockopen ($server, 43);
fwrite ($handle,$query);
while (!feof ($handle)) {
$results .= fread ($handle, 102400);
}
if ($server == ‘whois.internic.net’) {
preg_match (‘#Whois Server: (.*)#’, $results, $matches);
$results = whois ($query, $matches[1]);
}
return $results;
}
echo whois ($_REQUEST[‘domain’]);
?>

For Linux Server use this code :

<?php

$domain = $_REQUEST[‘domain’];
$output = shell_exec(“whois $domain”);
echo $output;
?>

Copy this code and paste it in a file called whois.php in your root directory

2. Open the web browser type http://www.yourdomain.com/whois.php?domain=http://www.anydomain.com

Now you can check who is of any domain from your site.
Enjoy coding. 🙂

Those who want to add a class for whois Download from here

Today one of my internet friend share with us a php code to fetch alexa ranking.

  • All you need to do copy the code from here.
    <?php
    $Url = $_GET[‘url’];
    function getPage ($url) {
    if (function_exists(‘curl_init’)) {
    $ch = curl_init($url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER[‘HTTP_USER_AGENT’]);
    return curl_exec($ch);
    } else {
    return file_get_contents($url);
    }
    }
    function getAlexaRank($url) {
    $url = @parse_url($url);
    $url = $url[‘host’];
    $url = “http://data.alexa.com/data?cli=10&dat=s&url=$url&#8221;;
    $data = getPage($url);
    preg_match(‘#<POPULARITY URL=”(.*?)” TEXT=”([0-9]+){1,}”/>#si’, $data, $p);
    $value = ($p[2]) ? number_format($p[2]) : 0;
    return $value;
    }
    $Rank = getAlexaRank($Url);
    echo $Rank;
    ?>
  • Save the file in your site http://www.yourdomain.com/alexapagerank.php
  • Now run the file from browser http://www.yourdomain.com/alexapagerank.php?url=domain_name_to_get_alexa_ranking

Easy and simple step to get any of your website alexa ranking from your site.
Thanks to share this valuable code -NB-