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."
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() as Integer = 2467
Anyways this is just a starter thought
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Dim uPassword() As Char = "fortune"
Dim p1 As Integer = 2
Dim p1c As Char = "r"
Dim pMatch As Integer = 1
Dim input(uPassword.Length - 1) As Char
For i As Integer = 0 To uPassword.Length - 1'Just building the password char array to validate the thought
input(i) = uPassword(i)
If (p1 = i) Then
If (uPassword(i) = p1c) Then
pMatch = 0
Response.Write("<span style=""color: black;"">" & input & "</span>" & _
"<br /><span style=""color: black;"">" & pMatch.ToString & "</span>")
First on Page_Load the 4 random numbers are generated and store it in one array which
ispublicshared , thenon login buttom i retreve password based on user name to take one record
and store that passwoard on variable (passdbo) then I dolike this
x1 = (arrNumber(0) - 1)
a1 = passdbo.Chars(x1)
x2 = (arrNumber(1) - 1)
a2 = passdbo.Chars(x2)
x3 = (arrNumber(2) - 1)
a3 = passdbo.Chars(x3)
x4 = (arrNumber(3) - 1)
a4 = passdbo.Chars(x4)
passdb = Val(a1 + a2 + a3 + a4)
pass = Val(TextBox2.Text)
IfString.Compare(passdb, pass) Then
MsgBox("Invalid Username OR Password ")