Answer the question
In order to leave comments, you need to log in
My site has dropped dramatically in rankings and direct traffic has skyrocketed. How to protect yourself?
My site was in the top 10-20 for the main queries. Direct traffic increased sharply from 10-15 visitors to 300 per day and at the same time the site flew away in all positions somewhere beyond the top 100. This is probably an attack by competitors. How to defend against it and how to return to position?
Answer the question
In order to leave comments, you need to log in
This is not an attack, it's more like bots parsing content. But look at the logs, everything will be visible there, maybe the robots, of course, are looking for common holes in cms.
so you figure out what kind of traffic first, get rid of it and everything will be ok
for (x = 1; x < 5; x++) {
/*
setTimeout(function(){
clickRecordSearch(0, ip_nvr, x, "2017-05-17 00:00:00", "2017-05-17 23:59:59", num_nvr); //channel num as is, without shift
}, 500);
*/
(function(x) {
setTimeout(function() {
clickRecordSearch(0, ip_nvr, x, "2017-05-17 00:00:00", "2017-05-17 23:59:59", num_nvr); //channel num as is, without shift
}, 500);
})(x);
}
Why setInterval does not suit you? You're using a for loop and setTimeoutYou're trying to replicate the behavior of setInterval .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question