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 6385229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:52:24+00:00 2026-05-25T02:52:24+00:00

I am still fairly new to web application development, so perhaps this is a

  • 0

I am still fairly new to web application development, so perhaps this is a n00b question.

It seems like most websites will just silently ignore query string arguments they do not need nor understand. For example, a github URI usually looks like:

https://github.com/airbnb

Now if I just tack on a bogus query string, as in:

https://github.com/airbnb?foo=bar

The page loads just fine and doesn’t complain about the query string.

This seems like a perfectly reasonable behavior, and I spot-tested some other sites and they also ignored extraneous and/or unneeded query string arguments.

My questions are:

1) Is this the correct or de facto behavior of most web applications? (presumably answer is yes)

2) If (1) is yes, is the reason just common sense, convention, simplicity, etc? Or do standards like HTTP or REST have any guidance or interest in deciding how this is handled?

Alternatives would be to:

  • Explicitly guard against unknown query string arguments, which is perhaps a bit heavy-handed
  • Redirect to a “clean” version of the URL w/o the bogus strings. Again, perhaps this is unnecessary
  • 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-25T02:52:25+00:00Added an answer on May 25, 2026 at 2:52 am

    The practice I have always followed while developing web applications is performing only the validation of expected parameters. You should not, IMHO, even read/parse any parameter which you do not expect, because the possibilities are practically infinite. Imagine that it is possible to perform a query like:
    https://github.com/airbnb?foo=bar
    and also:
    https://github.com/airbnb?fooo=bar
    and also:
    https://github.com/airbnb?foooo=bar

    So, if one is to refuse every single parameter not accepted, it would certainly be a little overwhelming. Just ignoring and not even reading them should be safe enough.

    Refusing requests containing unexpected parameters will also bring additional challenges, for example: Google Analytics (and other tracking solutions as well) might reach your site using additional parameters.

    Side note: if your app supports redirection, I recommend reading the following tip, just in case: http://guides.rubyonrails.org/security.html#redirection

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am fairly new to web development. So I apologize if this is a
I am creating a web application in Asp.net and I'm still fairly new. I'm
I'm still fairly new to ASP.NET development so bear with me. I'm going to
I'm fairly new to Photoshop (Still CS4) and I often get designs for websites
So I am still fairly new to all of this, that is coding, OS
I'm new to GWT and also fairly new to doing Java web development, using
I may be asking the wrong question but I am still fairly new to
I'm still fairly new to Obj-C and the idea of blocks. I read this
I'm still fairly new to T-SQL and SQL 2005. I need to import a
I am still fairly new to EDI, and learning it on a new job.

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.