K
K
Konstantin Khairov2016-03-06 21:54:47
PHP
Konstantin Khairov, 2016-03-06 21:54:47

Is it possible to protect against Ddos with PHP?

Finished my first site on php
sniffer.poigraem.uz
Here the first attack went (I was warned) so to speak for the test. And the server issued a restriction to the site. And all 2 minutes the site is offline. I found this article
vk-site.com/zashhita-ot-ddos-atak-na-php.html
But is it worth trying to install it. Are there other options for protection?
By the way, this is not the first time the site has crashed. When I just started making a site on this hosting. I checked the design through browsershots, it happened that even after it it gave out restrictions. Can you tell me if there are any other options?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
trevoga_su, 2016-03-06
@trevoga_su

I was able to register with the login " (quote) and the rest of the empty fields
, give us your code, we will now decompose you into molecules

S
Silm, 2016-03-06
@Silm

PHP requires proper use. Ddos protection is implemented on a completely different level. And this script will not help in principle, because ddos ​​is what ddos ​​is for, that it comes from different IPs. On the contrary, with this script you will lie down faster.
You either have a really bad hoster, or you have coded something crooked.
First you need to find out why the site is crashing. Where is the bottleneck, where is the load. If you don't like Uzbekistan hosting, take another one.
And why are you bothered by ddos ​​at all? It doesn't look like you have some kind of commercial or competitive project that would make sense to ddos.

D
dev400, 2016-03-06
@dev400

phptherightway.com

D
DarkMatter, 2016-03-07
@darkmatter

The answer to your question is this: it is possible only from the most primitive attack at a primitive level.
Correct answer: no, you can't. To protect against stronger attacks, they change the server configuration and not php. For example, you can cunningly configure iptables (prohibit ip ranges or set intervals)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question