I've had problems with Yandex (and Baidu) in the past, they both hit harder than google. Given that I had 0% interest in the Russian/Chinese market where I was, I blocked them. I tried using robots.txt, but they didn't play well. You might find this[^] discussion helpful I went down the URLRewrite route, it worked pertty well, but needed IIS7 plus the module installed.
Thanks for the article, I need to know that stuff anyway. Google is actually pretty courteous crawling at a rate of about 2 minutes each.
I think my strategy is wrong here. Perhaps for crawlers and bots, I should make them wait for the whole process to complete on a single thread. But on human users, I can put data writes on background threads so there experience is faster.
I prefer to have such plugins downloadable by nuget rather than build into language/framework. As you won't always need that and can keep things more simple. Too many contros means you will never know about them so won't use them anyway
-- "My software never has bugs. It just develops random features."
Hi, I'm sending mail to newly register Users in html format(Asp.net C#). It works fine but sometimes Some Unwanted html code(that dose not exist in my webpage) showing after mail body even mail content is correct. if anyone know the solution, plz help. Here is that unwanted code that User getting.
With all do respect, how are we suppose to know where to look.
You should add a watch to your message body and run the program in debug, then make a copy of the body text, and send it to yourself. Then inspect both message body content and compare the two.
Then inspect the message content of the other email with the extra text and make a comparison as well. If the extra html only appears after relaying through the other mail server, then that mail server is injecting the html.
hi,,I developed website(asp.net vb)..on the login page the user have to enter not the whole passworad the page will ask him to enter just 4 digits of his passworad and that number appear randomly.my problem now I dont know how the compare will work between the passworad which he entered with the passworad which is saved on database.
But each random number is equal the index of the passworad which the password will be store in one string so, it should be compare one by one !!!! Also the random numbers it repeated it shuld be not and I found by swap to be not repeated but is reapate.??
Just off the top of my head, I write in vb, not that quick in c sharp. But I put about 10 minutes into it just to test 1 char. I would have to come back to convert the program to test char positions 2-4-6-7. I'm a little fuzzy on integer array, in which I can loop the Integer array of p1 to test 2-4-6-7 in the same loop, and produce a exit code such as 0 for success or 1 for failure.
 If I used the integer array of p1 for looping, I could just match the int value to the char position much faster. But that's my weakness.
Dim p1() asInteger = 2467
Anyways this is just a starter thought
ProtectedSub Page_Load(sender AsObject, e As System.EventArgs) HandlesMe.Load
Dim uPassword() AsChar = "fortune"Dim p1 AsInteger = 2Dim p1c AsChar = "r"Dim pMatch AsInteger = 1Dim input(uPassword.Length - 1) AsCharFor i AsInteger = 0To uPassword.Length - 1'Just building the password char array to validate the thought
input(i) = uPassword(i)
If (p1 = i) ThenIf (uPassword(i) = p1c) Then
pMatch = 0EndIfEndIfNext
Response.Write("<span style=""color: black;"">" & input & "</span>" & _
"<br /><span style=""color: black;"">" & pMatch.ToString & "</span>")