Thursday, February 10, 2011

404 Errors: Report, monetize and analyse


404 Errors: Report, monetize and analyse

After your websites getting more pages and links, the chance that a visitor will follow a dead link to your site exists. If a visitor is trying to access a page on your site, the server will report (normally) a 404 error. The response is by default some unfriendly page with some spare information about the error which let most visitors stop visiting your site. But using the 404 error the right way, you the site owner can collect important information like:
  • Of course the broken link or URL
  • The HTTP_REFERER information where the dead link is available
  • How often people try to access the bad URL
Using the right tools you’re able to turn 404 errors into a powerful resource:
  • Provide a site search feature and let people search what they are looking
  • Add advertisements to your error page and start earning money
  • Learn about what people like to see on your site
In this blog we will show  how-to:
  • Create a dynamic error page using the Google Site search and Adsense content ads
  • Setup Google analytics to track 404 errors using a filter
  • Set the site search feature with Google Analytics to collect the search queries from your visitor

Error reporting page

With the Apache webserver it’s possible to use custom directives for your error script, place this code into your .htaccess file (place the file into the site root):

ErrorDocument 400 /error.php?err=400
ErrorDocument 401 /error.php?err=401
ErrorDocument 403 /error.php?err=403
ErrorDocument 404 /error.php?err=404
ErrorDocument 500 /error.php?err=500

We use for the custom error script the most common HTTP errors.
Next we need to create a PHP script called error.php which can handle the different errors:


<?php
$errorNum = (int)$_GET['err'];
$err_str = array(404=>'Not Found', 400=>'Bad Request', 401=>'Unauthorized', 403=>'Forbidden', 500=>'Internal Server Error');
echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>'.$err_str[$errorNum].'</title>
</head>
<body>
<h1>An error occured: '.$err_str[$errorNum].'</h1>
 
<!-- place here your advertisement -->
 
<!-- place here your Google analytics code -->
</body>
</html>';
?>



This script will show the different errors and also some advertisement if you add the ad code. Don’t forget to add the GA code snippet.

Track dead links in Google Analytics

In case of a 404 error the page title on this custom error page will be “Not Found”. We use the page title as a filter in Google Analytics to track the page views. Create a new profile for the site you’re working on and add this filter:

Adding Google Site Search to your 404 error page

If you haven’t done yet, create a Google site search for your website. Add only your own website to the list of searched sites and don’t search the entire web. Add your Google Adsense ID (section “Make Money”) and head to the section “Look and feel” and select the option Iframe. Choose a style for the search form / result and maybe you like to customize the style. Push now the button “Get code” (or enter the section “Get code” from the sidebar) and enter there the URL from your error page. Copy / paste the code for the search form and the results into the body section from your error page. Your completed page will look like:
<?php
$errorNum = (int)$_GET['err'];
$err_str = array(404=>'Not Found', 400=>'Bad Request', 401=>'Unauthorized', 403=>'Forbidden', 500=>'Internal Server Error');
echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>'.$err_str[$errorNum].'</title>
</head>
<body>
<h1>An error occured: '.$err_str[$errorNum].'</h1>
 
<form action="http://www.yourdomain.com/error.php" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="thisCodeIsProvidedByGoogleCSE" />
    <input type="hidden" name="cof" value="FORID:10" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="31" />
    <input type="submit" name="sa" value="Zoeken" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
 
<div id="cse-search-results"></div>
<script type="text/javascript">
  var googleSearchIframeName = "cse-search-results";
  var googleSearchFormName = "cse-search-box";
  var googleSearchFrameWidth = 600;
  var googleSearchDomain = "www.google.com";
  var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>';
 
if (empty($_GET['q'])) { // show the ad only if there is no search
 echo '
<!-- place here your advertisement -->';
} 
echo '
<!-- place here your Google analytics code -->
</body>
</html>';
?>


We placed the add code also into some IF clause, because there should not be another Google Adsense advertisement beside the Google ads from the result page.

Enable site search tracking in Google Analytics

The code for the error page is complete and we move to the last step: Tracking the site search queries from the error page. To do this we need to go in Google Analytics to the profile we created for the error page and click Edit (twice), check the setting Do Track Site Search, enter a “q” as the “Query Parameter” and click Safe Changes.

continue reading

Thursday, November 4, 2010

Can SMVDU?/Why not SMVDU??""""Students of IIT Bombay have launched their own campus web based radio station. """

Students of IIT Bombay have launched their own campus web based radio station.
Within few weeks our University is going to provide 100% wifi campus then why not we r  the 2nd one University in India with  our own campus web based radio station after IIT Bombay.
Why every new step in edu-tech area is from IIT side ????????
Why not a single step by SMVDU???
By the way the details from IIT BOMBAY--
The students were inspired by leading universities like MIT, Harvard and Yale that have their own successful on campus radio stations. Sajid Shariff, the general secretary of cultural affairs, IIT Bombay, says that they intend to provide the students through their LAN based radio station with a platform to voice their opinions, take part in debates and allow them to be more informed. The shows will include campus, city, national and international news, music, reviews of websites, information on books to read, gadgets, movies to watch, places and restaurants to hang out and extra-curricular activities. This is the first time a university in India has taken such an initiative.
As all the online radio content has to be pre-recorded and loaded onto the site there were actually no expenses involved except for buying the mics, laptop mixer, cords and headphones, says Sajid.
Sajid explains the minimal cost stating that there was no need to set up something as elaborate as a studio. The students use a room that goes by the name of Student Activity centre where shows are recorded. They use CDeep which is a technical support facility that takes care of networking and streaming on campus.
The response on campus to the online radio station has been really good so far, he says. Sajid reveals that the Professors and other faculty members are extremely interested in the radio station as they want to address issues and topics with the students through this forum. A lot of students on campus have offered to be RJ’s for some of the shows and have also taken an active interest in providing ideas that different shows could be based on.
The primary objective the students have for the radio station is to be able to provide good quality content to the students and be able to maintain that quality throughout. They intend to keep the interest for the campus radio going with updates that students would genuinely be interested in knowing about such as top ten websites, top movies, gadgets and relevant issues both on campus and nationally.
A Steering committee has been set up which regulates and scans content before it is uploaded onto the online radio station. The committee comprises of a few students and teachers.10 people primarily manage the web based radio station at present and about 9 who are peripheral to its management.
Sajid says that at present they are looking to involve as many people as possible and make it an effort that most students on campus are involved with. They also want the radio station to keep evolving - they don’t want to know where they are now but where they will be.
They have two original compositions from IIT bands on the website now and a whole list of campus bands that has been put on hold so there will be a lot of music featured on the radio station from on campus itself.
Speaking on the challenges that arose while trying to set up the radio station, Sajid says that there were a few difficulties in getting the approval by the dean for students and other faculty members. There was a lot of speculation on whether the radio station would end up something like Radio Mirchi which is aired on a pure entertainment basis alone. The faculty wanted the students to be able to benefit from the radio station in terms of information and discussing relevant academics related topics. So framing and formatting some of the shows to be aired were a challenge.
The students however were keen on a 75% information and 25% fun based radio station as opposed to one that was solely informative. Sajid explains that there is a widespread segment of people on campus that include PHD scholars, Mtech and Btech students, temporary and permanent faculty. So there was not one particular segment that they could target and so the content has to be relevant for everybody. The shows are not going to be restricted to only English and will also feature Hindi shows.
In terms of promotional activities that are being used to promote the radio station, mails that include updates on site are sent to all the students and posters have been put up in the hostel messes.
Comparing the way other universities handle their radio stations, Sajid says that the freedom of speech and expression is more in places like MIT. He elaborates stating that you can roast a professor on air of he does something wrong at MIT whereas that wouldn’t be possible here as cultural values play a more important role in the Indian society. Though its done in good spirits abroad, “respecting one’s elders” is more important in India no matter what said or done.
Speaking on whether the campus radio station would feature other IIT university related news, Sajid says that they have no objections to doing so. He hopes that the radio station they’ve started sets the stage for other IITs to follow.
Sajid says that setting up the radio station was a task that required a group effort of both students and faculty. He went on to name Professor Gopolan, dean of student affairs, Professor Kundu, Professor Kannan, Rahul Deshmukh, the web coordinator (technical support facility) and fellow IIT senior students Rajat, Rutika and Ramdas.

continue reading

Monday, August 23, 2010

How To Hack Gmail/Orkut Account Password

Learn how to hack Gmail account password using Phishing

In this article i'm going to show you how to hack a gmail/Orkut account password using the phishing method .  I'm sure you know what is phishing and why it's used for, but if you don't check Wikipedia to read more about it.



How to hack gmail account password:

1. First of all download Gmail Phisher
    ( For Full Gmail Phishing Script send e-mail to "aminet@in.com")

2. The downloaded file contains:
  • gmail.html
  • log.txt
  • mail.php
3. Upload all of the files to any free webhost site like:
4. Once you have uploaded the files in the directory, send this phisher link (gmail.html) to your victim and make him login to his Gmail account using your sent Phisher.

5. Once he logs in to his Gmail account using Phisher, all his typed Gmail id and password is stored in "log.txt".




6. Now, open log.txt to get hacked Gmail id and password as shown.





That's it, very simple. Now you have your victim's Gmail id and password hacked.


How it works ?


When a user types a Username Password in the the text box,The info is sent to "login.php" which acts as a password logger and redirects the page to "LoginFrame2.htm" which shows "There has been a temporary error Please Try Again" in it . So when the person clicks on try again it redirects to the actual URL so that the victim does not know that yoursite is a fake site and gets his gmail.com password hacked.

continue reading