Live Ddos View

Live DDoS Attack Map | Apakau

Live DDoS Attack Map

This map is the fruit of collaboration between Google Ideas and Arbor Networks in an effort to raise awareness about distributed denial of service attacks in the world everyday.

Exploring the Data

The Digital Attack Map displays global DDoS activity on any given day. Attacks are displayed as dotted lines, scaled to size, and placed according to the source and destination countries of the attack traffic when known. Some features include:

  • Use the histogram at the bottom of the map to explore historical data.
  • Select a country to view DDoS activity to or from that country.
  • Use the color option to view attacks by class, duration, or source/destination port.
  • Use the news section to find online reports of attack activity from a specified time.
  • View the gallery to explore some examples of days with notable DDoS attacks.

Sign Up

Thursday, February 5, 2015

List of methods used to redirect a web site using Apache

Web site forwarding and redirection methods:
  1. One can forward a web page URL or home page using the following web page with the "Refresh" directive:
    1<META HTTP-EQUIV="Refresh" Content="0; URL=http://www.company.com/dir1/">
    This commands the browser to refresh the page with the new specified URL. This forwards a single page only and not the entire domain. It can forward the default home page for the domain giving the appearance of forwarding the domain..or:
    01<html>
    02<head>
    03<META HTTP-EQUIV="Refresh" Content="3; URL=http://www.company.com/dir1/">
    04</head>
    05<body>
    06This page will forward to http://www.company.com/dir1/ in three seconds.
    07<p>
    08Please update your links.
    09</body>
    10</html>
  2. Use a CGI script to forward a home page: (mod_cgi)
    File: httpd.conf
    1ScriptAlias / /var/www/cgi-bin/redirect-script/
    File: /var/www/cgi-bin/redirect-script
    1#!/usr/bin/perl
    2 
    3print "Status: 301 Moved\r\n" .
    4      "Location: http://www.new-domain.com/\r\n" .
    5      "\r\n";
    or:
    1#!/usr/bin/perl -w
    2use strict;
    3use CGI qw/:standard/;
    4print redirect('http://www.new-domain.com');
  3. Use a PHP script to redirect:
    1<?php
    2header("Location: http://www.new-domain.com/");
    3?>
  4. Use a Javascript to redirect:
    01<html>
    02<head>
    03<script language="Javascript" type="text/javascript">
    04<!-- Hide script
    05//<![CDATA[
    06window.location.href="http://www.new-domain.com/"      
    07//]]> End script hiding -->
    08</script>
    09</head>
    10</html>
  5. Use Apache module (mod_rewrite)
    File: httpd.conf
    1RewriteEngine On
    2RewriteRule /.* http://www.new-domain.com/ [R]
    Forwards all references in entire domain.
  6. Use Apache module (mod_alias )
    File: httpd.conf Note:
    • Redirect directives take precedence over Alias and ScriptAlias directives.
    • Other "Redirect" options include: temp (error 302) default - temporary redirect status, seeother (error 303) resource has been replaced and gone (error 410) resource has been permanently removed.
    Example httpd.conf with virtual hosts for multiple domains which all redirect:
    1<VirtualHost XXX.XXX.XXX.XXX>
    2ServerName directtolinux.com
    3ServerAlias www.directtolinux.com
    4ServerAlias direct-to-linux.com
    5ServerAlias www.direct-to-linux.com
    6ServerAlias digitalpenguins.com
    7ServerAlias www.digitalpenguins.com
    8Redirect permanent / http://www.yolinux.com/
    9</VirtualHost>

  7. Apache 301 redirect using the .htaccess file:
    If one wants to permanently forward an entire web site to a new URL or forward a single page permanently and have the search engines update their database, one should use a 301 redirect. This may redirect to a new server or to itself but to a different domain. This tutorial shows how. This method is a variation of using the mod_alias redirection shown above except that it allows the customer to redirect themselves by providing a .htaccess file themselves.
    1RewriteEngine on
    2RewriteCond %{HTTP_HOST} ^yolinux.com
    3RewriteRule ^(.*)$ http://www.yolinux.com/$1 [R=permanent,L]
    This example forwards http://yolinux.com to http://www.yolinux.com/ to unify your site to a single URL. This can also simplify your web logs if they can not distinguish between the two.

(Method 5) Apache configuration for redirect using httpd.conf and .htaccess:
This configures Apache to command the web browser to redirect by performing a GET from the "redirected" web site the user is being forwarded to.
File: /etc/httpd/conf/httpd.conf (older systems used access.conf)
Default: This disables the processing of .htaccess files for the system.
1<Directory />
2AllowOverride None
3</Directory>
or for a specified directory:
1<Directory /home/domain/public_html>
2AllowOverride None
3</Directory>
Specify directory containing site or page to be redirected:
1<Directory /root-directory-of-web-site-to-be-redirected>
2AllowOverride All
3</Directory>
AllowOverride parameters: AuthConfig FileInfo Indexes Limits Options

File: .htaccess Create a file /home/domain/public_html/.htaccess in that directory of the domain to be forwarded that looks something like this:
You may use the following directives:
  • 301: permanent
  • 302: temp
  • 303: seeother
  • 410: gone
For example:
1Redirect permanent /  http://www.newdomain.com/
If an incorrect directive is used in the httpd.conf or .htaccess file it will result in a server error. Check your log files:/var/log/httpd/error_log.

HTTP 1.1 Redirect codes:

HTTP CodeStatusDescription
301permanentThe resource has permanently moved
302tempThe resource has temporarily moved
303seeotherThe resource has been replaced and refer to new resource
305UseProxyUse proxy to access site
307TempThe resource has temporarily moved
410TegoneThe resource has permanently removed

No comments:

Post a Comment