• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Anti-DDOS when attacked by Proxy

AnonyViet by AnonyViet
January 31, 2023
in Security
0

Recently, a number of reworked scripts from the shared code on the network are used to attack denial of service, these refactored scripts are often modified by the attacker to use a list of proxies to flood, so it is difficult to detect. limit request/connection, when I log out, I see a large number of accesses from many different IPs.

Join the channel Telegram of the AnonyViet 👉 Link 👈

However, because the attacker uses free proxies here, they all have one thing in common, “X_Forwarded_For”. This type of attack, if hit on a highly configured server, often overloads internal services such as Database (Mysql) or CGI (PHP, Perl, Websocket, …) causing a “Time out” error due to too much processing. request 1 time.

bao-ve-vps-hoi-tan-cong-ddos-flood-2

The configuration below will help you in such cases, it blocks all requests containing X-Forwarded_For so as not to affect the back-end services. However, it also depends on the Webserver you use and server configuration, if the webserver like apache is slow to handle congestion and hangs, you should build nginx first to block.

For Servers using Apache:

Add the following code to the .htaccess file

/share/anti_dos_through_multi_proxies

# .htaccess for apache
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:XROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED-FOR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ [OR]
RewriteCond %{HTTP:FORWARDED-FOR} !^$ [OR]
RewriteCond %{HTTP:X-FORWARDED} !^$
RewriteRule ^(.*)$ - [F]
</IfModule>

For Servers using Nginx:

# nginx config
if ($http_x_forwarded_for) {return 444;}

The article achieved: 5/5 – (100 votes)

Tags: AntiDDoSattackedProxy
Previous Post

Compare Ubuntu Vs Pop!_OS: Which one to choose?

Next Post

Download UnHackMe 11.40 Full Key – Protect Windows from Virus

AnonyViet

AnonyViet

Related Posts

How to intercept traffic using Burp Suite to analyze HTTP/HTTPS
Security

How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

April 18, 2026
How to use hackers use Splitfus to execute PowerShell malicious code
Security

How to use hackers use Splitfus to execute PowerShell malicious code

July 20, 2025
How to implement Shellcode Injection attack technique with Autoit
Security

How to implement Shellcode Injection attack technique with Autoit

March 14, 2025
How to exploit the holy hole of Hijacking on Windows
Security

How to exploit the holy hole of Hijacking on Windows

March 8, 2025
Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery
Security

Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery

February 10, 2025
Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile
Security

Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile

December 14, 2024
Next Post
Download UnHackMe 11.40 Full Key – Protect Windows from Virus

Download UnHackMe 11.40 Full Key - Protect Windows from Virus

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to turn off Gemini Nano on Chrome to free up 4GB of memory

How to turn off Gemini Nano on Chrome to free up 4GB of memory

May 30, 2026
Instructions for receiving Lovable Pro 12 months for free

Instructions for receiving Lovable Pro 12 months for free

May 29, 2026
How to extract text from photos using Zalo is super simple

How to extract text from photos using Zalo is super simple

May 29, 2026
HONOR 600 in hand – High-end design, 200MP camera, not cheap price

HONOR 600 in hand – High-end design, 200MP camera, not cheap price

May 28, 2026
How to turn off Gemini Nano on Chrome to free up 4GB of memory

How to turn off Gemini Nano on Chrome to free up 4GB of memory

May 30, 2026
Instructions for receiving Lovable Pro 12 months for free

Instructions for receiving Lovable Pro 12 months for free

May 29, 2026
How to extract text from photos using Zalo is super simple

How to extract text from photos using Zalo is super simple

May 29, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to turn off Gemini Nano on Chrome to free up 4GB of memory

How to turn off Gemini Nano on Chrome to free up 4GB of memory

May 30, 2026
Instructions for receiving Lovable Pro 12 months for free

Instructions for receiving Lovable Pro 12 months for free

May 29, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply