Skip to main content
Mostafa85
New Member
Feb 22, 2025 6:55 PM UTC
Question

limit source ip in fortiweb

Hi everyone,

We are currently using FortiWeb version 7.6.1, and we've noticed multiple requests coming from a specific source IP address in the traffic logs. All these requests are returning a 404 status code.

 

We have configured DoS protection, imposed limits on HTTP access, and set up a custom rule in the advanced protection settings to restrict these requests. However, it seems that these measures are not effective.

 

Could anyone provide guidance on how we can implement a rate-limiting rule to block requests from this IP address after 10 occurrences of a 404 response, and then enforce a block for 1 minute?

Thank you for your assistance!

4 replies

AEK
SuperUser
SuperUser
Feb 22, 2025 11:16 PM UTC

Hi Mostafa

Use this page to check if the IP is bad bot.

https://www.fortiguard.com/services/botnet

If so then you can use bot mitigation or IP reputation to deny access to bad IP addresses.

Otherwise I personally don't know a method to block an IP after 10 occurrences of a 404 response.

AEK
Mostafa85
Mostafa85Author
New Member
Feb 24, 2025 1:32 PM UTC

Thank you for your response!

We have a published service, and we noticed that possible clients are receiving a 404 error code for their requests. We would like to implement a system to block a client ID if multiple erroneous requests are detected on our web service.

Any suggestions on how to best approach this?

shafiq23
Staff & Editor
Staff & Editor
Feb 25, 2025 9:05 AM UTC

Hello @Mostafa85 ,

 

Would this meet your requirement? You may fine tune the occurrences accordingly.

custom-rule.PNG

 

Thanks.

 

Regards,

Shafiq

AEK
SuperUser
SuperUser
Feb 25, 2025 9:10 AM UTC

Nice! I don't know why but I always forget the power of custom policy.

AEK
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT