<%@ WebHandler Language="C#" Class="MyNamespace.robotshandler" %> using System; using System.Web; using System.Web.UI; namespace MyNamespace { public class robotshandler: IHttpHandler { public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("User-agent: *\n"); if (context.Request.ServerVariables["Https"]=="off"){ // HTTP context.Response.Write("Allow: /\n"); context.Response.Write("Disallow: /BlogEzineSubscribe.aspx\n"); context.Response.Write("Disallow: /BlogEzineSubscriptionThankYou.aspx\n"); context.Response.Write("Disallow: /ShopOnline1.aspx\n"); context.Response.Write("Disallow: /ShopThankYou.aspx\n"); context.Response.Write("Disallow: /ShopOnlineCountries1.aspx\n"); context.Response.Write("Disallow: /Error404.aspx\n"); context.Response.Write("Disallow: /ebook.\n"); context.Response.Write("Disallow: /recommendglobal.aspx\n"); context.Response.Write("Disallow: /WeDrinkNoniClub.aspx\n"); context.Response.Write("Disallow: /ezine/blogezine.aspx\n"); context.Response.Write("Disallow: /today/BlogEzineSubscribe.aspx\n"); context.Response.Write("Disallow: /a/NatureBorn.aspx\n"); context.Response.Write("Disallow: /a/Tahitian-Noni-Juice.aspx\n"); context.Response.Write("Disallow: /BuySellProducts.aspx"); context.Response.Write("Disallow: /TahitianNoniMLMBusinessOpportunity1.htm"); context.Response.Write("Disallow: /hints/MLM-Multilevel-Marketing-Success.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingLowRisk.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingQualityProducts.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingResidualIncome.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingLargeIncomePotential.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingNoEmployeesNeeded.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingNoInventory.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingLowOperatingCosts.htm\n"); context.Response.Write("Disallow: /hints/NetworkMarketingFreedom.htm\n"); context.Response.Write("Disallow: /hints/WalkingSimplestWayToExercise.htm\n"); context.Response.Write("Disallow: /hints/StartYourWeightLossProgramOffRight.htm\n"); context.Response.Write("Disallow: /hints/FiveReasonsForExercisingToLoseWeight.htm\n"); context.Response.Write("Disallow: /hints/HouseReadyForWeightLossProgram.htm\n"); context.Response.Write("Disallow: /hints/SimpleEffectiveTipForWeightLoss.htm\n"); context.Response.Write("Disallow: /hints/7NaturalWaysToLiveLifeToTheFullestInMenopause.htm\n"); context.Response.Write("Disallow: /hints/WhatCausesFoodCravings.htm\n"); context.Response.Write("Disallow: /hints/AvoidingWeightLossPlateaus.htm\n"); context.Response.Write("Disallow: /hints/PhytoestrogensandMenopause.htm\n"); context.Response.Write("Disallow: /hints/IsBeingaVegetariantheHealthyWaytoLive.htm\n"); context.Response.Write("Disallow: /hints/WhyitisSoImportanttoDrinkWater.htm\n"); context.Response.Write("Disallow: /hints/CanYouGuessHowMuchSugarYouConsume.htm\n"); context.Response.Write("Disallow: /hints/StayingOnTrackWhileDiningOut.htm\n"); context.Response.Write("Disallow: /hints/HowToMakeTheMostOutOfMenopause.htm\n"); context.Response.Write("Disallow: /hints/WhatToDoAboutCravings.htm\n"); context.Response.Write("Disallow: /hints/HealthyWeightLossNutritionExercise.htm\n"); context.Response.Write("Disallow: /hints/WeightLossSuccessHowToDealWithIt.htm\n"); context.Response.Write("Disallow: /hints/TipsByWomenWhoHaveSuccessfullyLostWeightAndKeptItOff.htm\n"); context.Response.Write("Disallow: /hints/HowToAvoidThePitfallsOfWeightGain.htm\n"); context.Response.Write("Disallow: /hints/HintsToLowerFatInYourDiet.htm\n"); context.Response.Write("Disallow: /hints/ManagingYourWeightHealthily.htm\n"); context.Response.Write("Disallow: /hints/WhyLoseWeight.htm\n"); context.Response.Write("Disallow: /hints/FoodsForYourMoods.htm\n"); context.Response.Write("Disallow: /hints/NoniSafetyJournalOfFoodScience.htm\n"); context.Response.Write("Disallow: /hints/OtherDoctorsWhoRecommendTahitianNoniJuice.htm\n"); context.Response.Write("Disallow: /hints/RussiaIssuesAntiDoppingCertificate.htm\n"); context.Response.Write("Disallow: /hints/ThreeDoctorsWhoRecommendTahtianNoniJuice.htm\n"); context.Response.Write("Disallow: /hints/ThreeNewDoctorsEndorseTahitianNoniJuice.htm\n"); context.Response.Write("Disallow: /hints/ThreeScientistsRecommendTahitianNoniJuice.htm\n"); context.Response.Write("Disallow: /hints/WalkingSimplestWayToExercise.htm\n"); } else { // HTTPS context.Response.Write("Disallow: /"); } } public bool IsReusable { get {return false;} } } }