Обращения к фидам - WordPress - Ответ 17486621
30.12.2024, 10:30. Показов 132. Ответов 1
Отключил фиды на сайте, дорбавив в functions код
PHP | 1
2
3
4
5
6
7
8
9
10
| function ny_disable_feed() {
wp_redirect( get_option( 'siteurl' ), 301 );
}
add_action( 'do_feed', 'ny_disable_feed', 1 );
add_action( 'do_feed_rdf', 'ny_disable_feed', 1 );
add_action( 'do_feed_rss', 'ny_disable_feed', 1 );
add_action( 'do_feed_rss2', 'ny_disable_feed', 1 );
add_action( 'do_feed_atom', 'ny_disable_feed', 1 );
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 ); |
|
однако несмотря на это обращения к фидам зашкаливают, создавая большую нагрузку. В основном от
Код
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36".
Не знаю, что ещё можно сделать. Подскажите, кто знает
Код
/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 288982 170256:72516
[30/Dec/2024:07:14:47 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 143732 83995:40127
[30/Dec/2024:07:14:48 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 299192 179421:71091
[30/Dec/2024:07:14:49 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 302508 171988:80935
[30/Dec/2024:07:14:51 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 169160 96838:55336
[30/Dec/2024:07:14:51 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 293058 175487:69532
[30/Dec/2024:07:14:52 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 145073 73812:51748
[30/Dec/2024:07:15:12 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 294939 167253:81768
[30/Dec/2024:07:15:13 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 149758 99562:33611
[30/Dec/2024:07:15:23 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 312854 153678:80180
[30/Dec/2024:07:15:24 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 150338 74764:56203
[30/Dec/2024:07:15:24 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 300128 168769:72802
[30/Dec/2024:07:15:25 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 142901 62652:60836
[30/Dec/2024:07:15:36 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 301268 166672:86541
[30/Dec/2024:07:15:36 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 167443 97711:52098
[30/Dec/2024:07:15:37 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 342989 208963:86238
- [30/Dec/2024:07:15:38 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 153860 84338:47080
[30/Dec/2024:07:15:39 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 303296 165635:87888
[30/Dec/2024:07:15:40 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 144687 89606:36374
[30/Dec/2024:07:15:40 +0300] "GET / HTTP/1.1" 200 44985 "/feed" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 293148 183149:59997
[30/Dec/2024:07:15:41 +0300] "GET /feed HTTP/1.1" 301 2650 "-" "Mozilla/5.0 (Macintosh; Intel
Вернуться к обсуждению: Обращения к фидам WordPress
0
|