• 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 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
Capsolver: Automatic solution solution for business
Security

Capsolver: Automatic solution solution for business

December 12, 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 check what data Facebook is controlling about you

How to check what data Facebook is controlling about you

November 15, 2025
2 applications to monitor flooding situation in Ho Chi Minh City

2 applications to monitor flooding situation in Ho Chi Minh City

November 14, 2025
How to get 2000 free Manus credits in just 3 steps

How to get 2000 free Manus credits in just 3 steps

November 14, 2025
How to record Chromebook screen – ChromeOS

How to record Chromebook screen – ChromeOS

November 14, 2025
How to check what data Facebook is controlling about you

How to check what data Facebook is controlling about you

November 15, 2025
2 applications to monitor flooding situation in Ho Chi Minh City

2 applications to monitor flooding situation in Ho Chi Minh City

November 14, 2025
How to get 2000 free Manus credits in just 3 steps

How to get 2000 free Manus credits in just 3 steps

November 14, 2025
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 check what data Facebook is controlling about you

How to check what data Facebook is controlling about you

November 15, 2025
2 applications to monitor flooding situation in Ho Chi Minh City

2 applications to monitor flooding situation in Ho Chi Minh City

November 14, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

new88 trang chủ shbet trang chủ f168 trang chủ qq88 nhà cái 78win

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

new88 trang chủ shbet trang chủ f168 trang chủ qq88 nhà cái 78win

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