Γνωμικα

Τετάρτη 24 Νοεμβρίου 2010

Track ip connections (for pc and websites)

Track info for websites
If you have a website or blog, collecting data on visitors to your site is extremely important. Whether you have a business or just develop websites or blogs as a hobby, data from your visitors can be extremely helpful in tweaking and fine-tuning your site. The more data you can collect from visitors, the more productive and effective your content, campaigns and services can be. There are many ways to track website visitors. Some of the more popular include:

  • Free website tracking software
  • Analytic software
  • Services that track and analyze data for you.
  • Free Website Tracking Software

If you are one of the millions of web developers creating websites and blogs on the internet, you probably have access to cpanel. Cpanel is an open-source GUI interface that administers to your websites and blogs. Included in most cpanel software is the ability to view current and historical statistics regarding your domains.
Two programs that are included with most cpanel interfaces are Webalizer and AwStats (Advanced Web Statistics).


Webalizer
Webalizer is a barebones tool that keeps tracks of specific types of data and shows it graphically on the web. Data that Webalizer collects includes:

URL- Shows the URL that was requested by the user's browser.
Hit - Every single HTTP request that your visitor's browser submits is counted as a hit.
Page - A visitor's request for any URL with content.
File - Every HTTP request is considered to be a file.
Visitor - Each specific IP address or HTTP cookie.
Visit - Each time a visitor accesses your website.
Host - A host is a visitor's machine running a browser. Host and IP address are sometimes used interchangeably.
User Agent - The user agent is the web browser that a visitor uses to access your site (e.g. Internet Explorer, Opera, Firefox, etc.).
While Webalizer is efficient at collecting data, it does lack specific kinds of measurements. For instance, it does not differentiate between robots and human visitors. Another disadvantage of using Webalizer is that development on the program stopped in 2002.


AwStats
AwStats (Advanced Web Statistics) is another popular open source website statistics program. You can find it on most cpanel interfaces and it also works with most major server platforms. For many web developers, AwStats collects a vast amount of information including all the types of data collected by Webalizer. In addition, it can differentiate between human visitors and robots. It can also collect information on which countries visitors come from, bandwidth usage, top 25 users, the duration of time visitors spent on your site, most popular pages, computer operating systems used, the URL address from which visitors arrived, search keywords and key phrases that visitors used, etc. For the small-to-midsize web developer, AwStats is a powerful program that is fully featured.

Google Analytics
Google Analytics is a free statistics and analytical program used mainly by web developers as part of the Google AdSense network. However, it also provides useful information on many other aspects of web traffic and website marketing. While Google Analytics is an excellent tool for smaller developers that monetize their site with Google advertising, many web developers might find it easier to track web traffic with the other programs mentioned above.

Fee-Based Analytic and Statistical Software
If you have an e-commerce business or would like to have access to comprehensive, real-time data regarding your websites, you should probably look into fee-based analytic and statistical software. While these programs are fee-based, they are in most cases well worth the investment. They can give you a variety of tools to delve deep into your web traffic.

Using the many fee-based software products available, you can easily view and analyze visitors to your site and their behaior to help build a more effective website or product. Other services provided by these software products usually include fraud analysis, which can red flag traffic that may be fraudulent, and the ability to track advertising campaigns, with special emphasis on click-through rate and ROI (return of investment). Fee-based software also offers technical support and user forums to get the most out of the product.

Services that Track and Analyze Data
Many web developers can go one step further and pay for services that track and analyze data. Usually these services are run by search engine optimizers (SEOs) or marketing companies. Most are geared towards medium-to-large businesses on the web. These services are usually more expensive than fee-based products, but for many enterprises, they are the most effective choice.

Very good statistic php tool : PHPcounter
Download


Track pc open connections (netstat)

Whenever a client connects to a server via network, a connection is established and opened on the system. On a busy high load server, the number of connections connected to the server can be run into large amount till hundreds if not thousands. Find out and get a list of connections on the server by each node, client or IP address is useful for system scaling planning, and in most cases, detect and determine whether a web server is under DoS or DDoS attack (Distributed Denial of Service), where an IP sends large amount of connections to the server. To check connection numbers on the server, administrators and webmasters can make use of netstat command.

Below is some of the example a typically use command syntax for ‘netstat’ to check and show the number of connections a server has. Users can also use ‘man netstat’ command to get detailed netstat help and manual where there are lots of configurable options and flags to get meaningful lists and results.

netstat -na
Display all active Internet connections to the servers and only established connections are included.

netstat -an | grep :80 | sort

Show only active Internet connections to the server at port 80 and sort the results. Useful in detecting single flood by allowing users to recognize many connections coming from one IP.

netstat -n -p|grep SYN_REC | wc -l
Let users know how many active SYNC_REC are occurring and happening on the server. The number should be pretty low, preferably less than 5. On DoS attack incident or mail bombed, the number can jump to twins. However, the value always depends on system, so a high value may be average in another server.

netstat -n -p | grep SYN_REC | sort -u
List out the all IP addresses involved instead of just count.

netstat -n -p | grep SYN_REC | awk '{print $5}' | awk -F: '{print $1}'
List all the unique IP addresses of the node that are sending SYN_REC connection status.

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Use netstat command to calculate and count the number of connections each IP address makes to the server.

netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
List count of number of connections the IPs are connected to the server using TCP or UDP protocol.

netstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
Check on ESTABLISHED connections instead of all connections, and displays the connections count for each IP.

netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
Show and list IP address and its connection count that connect to port 80 on the server. Port 80 is used mainly by HTTP web page request

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου

LinkWithin

Top