Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6726803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:58:15+00:00 2026-05-26T09:58:15+00:00

My little ASP.NET MVC application is getting quite a few requests to bogus setup.php

  • 0

My little ASP.NET MVC application is getting quite a few requests to bogus “setup.php” pages (easily 200+ per week). I’m guessing this is some bot attempting to find vulnerable sites on the web to hack. It’s not a huge issue, but it does tend to fill up my error logs with junk and can make it harder to find real issues that need to be fixed.

What I’d like to do is create a route to handle all .php requests (and potentially other clearly bogus extensions) and handle them in some way. What would be fantastic would be to immediately abort the request so that my application isn’t wasting time/bandwidth on creating and sending a response (even if it’s just a 404). Also, assuming these are malicious requests, it would be great to make their server sit and wait for a timeout instead of getting an immediate response and quickly moving on to try someone else’s servers 🙂

So, I guess this is a 2 part question.

  1. Is it possible to simply stop processing a request in ASP.NET/MVC without sending a response

  2. Is there a better solution to this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:58:16+00:00Added an answer on May 26, 2026 at 9:58 am

    If you’re using IIS7 checkout http://learn.iis.net/page.aspx/499/request-blocking—rule-template/

    This can be specified in your web.config as well

    <system.webServer>
        <rewrite>
            <rules>
                <rule name="RequestBlockingRule1" patternSyntax="Wildcard">
                    <match url="*" />
                    <conditions>
                        <add input="{URL}" pattern="*.php*" />
                    </conditions>
                    <action type="CustomResponse" statusCode="403" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a ASP.NET MVC application. There is little space for me to put
In an ASP.NET MVC application (which has very little chance of having its view
I have a little weird behavior with my ASP.NET MVC 2 application. I'm using
I am developing an ASP.NET MVC application that has two kind of pages: (1)
I'm doing this little tutorial: http://www.asp.net/mvc/videos/mvc-2/how-do-i/creating-a-tasklist-application-with-aspnet-mvc But somehow he's passing a string back to
I'm migrating an application from ColdFusion to ASP.Net MVC and have a little problem
I've been using ASP.NET MVC for a little while now and seem to find
Started learning Wicket after ASP.NET MVC and feel a little bit confused about managing
I'm fairly new to ASP.NET MVC, and I'm having a little trouble with scripts...
I'm starting to learn ASP.Net MVC (the release candidate), and I'm having a little

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.