Forum Moderators: open

Message Too Old, No Replies

Filter incoming requests

Filter incoming request in IIS

         

Lightguy1

6:36 pm on Feb 12, 2008 (gmt 0)

10+ Year Member



Hello,

I have a bunch of old URLS that contain a ordercode in the url. My new urls simply are the same, but without the ordercode. Is there a way I can have IIS sent a 404 to any incoming request for a page url containing ordercode?

I think its yahoo that keeps indexing these old links, because they will display properly if the order code is still in the URL

patzblue

8:10 pm on Feb 15, 2008 (gmt 0)

10+ Year Member



Hi, I doubt it's possible within IIS (as far as I know).

But why don't you simply do it by code ? I do assume you process the ordercode. With vb.net you can easily validate the length or content of a querystring then redirect the user to the 404 page if there's a querystring. That's what I would do.

hope it helps.