Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 27th, 2005, 03:52 PM
sad.machine sad.machine is offline
I hate nerds
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Posts: 533 sad.machine Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 20 h 48 m 41 sec
Reputation Power: 0
How to prevent a DoS attack!?

Not even sure what it is exactly..but i am making a website in php and am getting a large # of users. what is it and how to prevent it/

Reply With Quote
  #2  
Old October 27th, 2005, 04:34 PM
the_dude's Avatar
the_dude the_dude is offline
The Scott Spirit
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2005
Location: Holland
Posts: 561 the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level)the_dude User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 20 h 14 m 2 sec
Reputation Power: 25
A DoS attack is a so-called Denial Of Service attack and has nothing to do with your PHP code. Try google for more info.
__________________

Reply With Quote
  #3  
Old October 27th, 2005, 04:46 PM
sad.machine sad.machine is offline
I hate nerds
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Posts: 533 sad.machine Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 20 h 48 m 41 sec
Reputation Power: 0
how come forums such as phpbb have mods that can prevent DoS attacks?

Reply With Quote
  #4  
Old October 27th, 2005, 08:43 PM
SimonGreenhill's Avatar
SimonGreenhill SimonGreenhill is offline
(retired)
Dev Shed God 11th Plane (10000 - 10499 posts)
 
Join Date: Dec 2003
Location: The Laboratory
Posts: 10,101 SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 5th Grade (Above 100000 Reputation Level)  Folding Points: 4925 Folding Title: Novice Folder
Time spent in forums: 3 Months 3 Weeks 5 h 49 m 4 sec
Reputation Power: 1331
Facebook
Because phpBB does everything arse-first.

A DoS attack is designed to over load your server. Think of it as someone/many people requesting a processer intensive page thousands of times per second so that valid users can't connect.

If you're using a webapp module to "prevent" DoS attacks, then you're still letting them hit your server, sure you may be doing a few less processor intensive things and this may save your arse, but you're just holding off the inevitable.

The best way to deal with this is to not let DoS style attacks near your webserver in the first place - use something like apache's mod_security or mod_dosevasive/mod_evasive to automatically drop abusive IP addresses at your firewall - before they get anywhere near your webserver.

--Simon

Last edited by SimonGreenhill : October 27th, 2005 at 08:45 PM.

Reply With Quote
  #5  
Old October 27th, 2005, 08:57 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,385 Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)Sepodati User rank is General 14th Grade (Above 100000 Reputation Level)  Folding Points: 78304 Folding Title: Intermediate FolderFolding Points: 78304 Folding Title: Intermediate FolderFolding Points: 78304 Folding Title: Intermediate FolderFolding Points: 78304 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 1 Day 2 h 46 m 21 sec
Reputation Power: 1915
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
Moved to Security Forum.

Reply With Quote
  #6  
Old October 28th, 2005, 12:46 PM
FirmbIT FirmbIT is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 12 FirmbIT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 26 sec
Reputation Power: 0
A good way to prevent a DOS attack and future DOS attackes would be to install the apache module mod_dosevasive. This apache module will help protect against people sending too many requests to the webserver in an attempt to flood it. If it detects too many connections the offending ip will be blocked from the accessing apache for This is especially useful when the server is continuously getting attacked.

If you need the download let me know.

---
www.firmbit.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > How to prevent a DoS attack!?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT