php de nasıl olur bilmiyorum ama asp de istenmeyen sayflar için
Response.Status="410 Gone" ya da Response.Status = "404 Not Found" http durum kodları döndürülmesi gerekir.