Добавьте напоминание в календарь, чтобы точно вспомнить про стрим!
Add to CalendarBeget, хостинг — https://digitalalex.ru/r/beget/
Clearfy, оптимизация — https://digitalalex.ru/r/clearfy/
Woody, вставка сниппетов — https://digitalalex.ru/r/woody/
WP fastest cache, кэширование — https://wordpress.org/plugins/wp-fastest-cache/
Autoptimize, объединение и сжатие — https://wordpress.org/plugins/autoptimize/
a3 Lazy Load, ленивая загрузка изображений —https://wordpress.org/plugins/a3-lazy-load/
All In One WP Security, безопасность — https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/
Really Simple SSL, для включения https — https://wordpress.org/plugins/really-simple-ssl/
Robin image optimizer, оптимизация изображений — https://digitalalex.ru/r/robin/
WebP Express, оптимизация изображений — https://wordpress.org/plugins/webp-express/
Содержание
Оптимизауця загрузки Google шрифтов
add_action( 'wp_head', 'kavawpl_load_fonts' ); function kavawpl_load_fonts() { ?> <!-- Сюда вставьте код из сервиса https://googlefonts.3perf.com --> <?php }
Блокировка плохих ботов
AESOP_com_SpiderMan aiHitBot AhrefsBot Alexibot Anonymouse.org AspiegelBot asterias attach BackDoorBot BackWeb Baiduspider Bandit BatchFTP Bigfoot Birubot Black.Hole BlackWidow BLEXBot BlowFish BotALot BTWebClient BUbiNG Buddy BuiltBotTough Bullseye BunnySlippers Butterfly CamontSpider Cegbfeieh CheeseBot CherryPicker ChinaClaw Collector CommentReader Copier CopyRightCheck cosmos Crescent DomainCrawler Curl Custo DIIbot DISCo discobot DittoSpyder Detectify Dolphin DotBot DomainCrawler Download Demon Download Devil Download Wonder Download Downloader dragonfly Drip EasyDL ebingbong eCatch EirGrabber EmailCollector EmailSiphon EmailWolf EroCrawler Exabot Express WebPictures Extractor EyeNetIE Ezooms FairShare FileHound FlashGet FlipboardProxy flunky Foobot FrontPage GetRight GetSmart GetWeb! Gigabot Go!Zilla Go-Ahead-Got-It gold\ crawler gotit Grabber GrabNet Grafula Harvest hloader HMView httplib HTTrack humanlinks ia_archiver igdeSpyder IlseBot Image Stripper Image Sucker Indy Library InfoNaviRobot InfoTekies Intelliseek InterGET Internet Ninja InternetSeer Iria Jakarta Java JennyBot JetCar JOC JS-Kit JustView Jyxobot Kenjin.Spider Keyword.Density kmSearchBot larbin LeechFTP LexiBot lftp libWeb/clsHTTP libwww likse Linguee LinkExchanger LinkextractorPro LinkScan/8.1a.Unix LinkpadBot LinkWalker LNSpiderguy LWP::Simple lwp-trivial Magnet Mag-Net MarkWatch Mass Downloader Mata.Hari MauiBot MegaIndex Memo Microsoft URL Control Microsoft.URL MIDown tool MIIxpc Mirror Missigua Locator Mister PiX MJ12bot MLBot moget Mozilla.*NEWT Mozilla/3.Mozilla/2.01 NAMEPROTECT Navroad NearSite Net Vampire NetAnts Netcraft NetMechanic NetSpider NetZIP NextGenSearchBot NICErsPRO NimbleCrawler Ninja NjuiceBot NPbot Nutch Octopus Offline Explorer Offline Navigator Openfind OutfoxBot PageGrabber Papa Foto pavuk pcBrowser PHP version tracker PHP Pockey PostRank ProPowerBot/2.14 ProWebWalker psbot ptd-crawler Pump Purebot PycURL QueryN.Metasearch RealDownload Reaper Recorder ReGet RepoMonkey Riddler RMA Siphon SiteBot sitecheck.internetseer.com SiteSnagger SlySearch SmartDownload Snake Snapbot Snoopy sogou Soup SpaceBison SpankBot spanner spbot Sqworm Stripper Sucker suggybot SuperBot SuperHTTP Surfbot SurveyBot suzuran SemrushBot SquigglebotBot Szukacz/1.4 Tagoobot tAkeOut Teleport Telesoft The.Intraformant TheNomad TightTwatBot Titan toCrawl/UrlDispatcher trovitBot True_Robot ttCrawler turingos TurnitinBot TurnitinBot/1.5 Twiceler URLy.Warning Vacuum VCI VoidEYE Voyager Web Image Collector Web Sucker Web.Image.Collector WebAuto WebBandit Webclipping.com WebCopier webcrawl.net WebEMailExtrac.* WebEnhancer WebFetch WebGo IS WebLeacher WebmasterWorldForumBot WebReaper WebSauger Website eXtractor Website Quester WebSite Webster WebStripper WebWhacker WebZIP Whacker Widow WISENutbot WWW-Collector-E WWWOFFLE Xaldon Xenu Yeti YottaShopping_Bot YottosBot Zeus Zyborg
Управление временем обхода сайта поисковиками
В robots.txt прописать
User-agent: *
Crawl-delay: 120
Для основных поисковиков есть инструкции по настройке частоты обхода
Google: https://support.google.com/webmasters/answer/48620?hl=ru
Яндекс: https://webmaster.yandex.ru/blog/skorost-obkhoda-ili-ob-izmeneniyakh-v-uchete-direktivy-crawl-delay
Переподключение иконок
add_action('wp_print_styles', 'kavawpl_scripts'); function kavawpl_scripts() { $uploads_dir = wp_upload_dir(); if ( isset( $uploads_dir['error'] ) && $uploads_dir['error'] !== false ) { return; } wp_enqueue_style( 'preload-elementor-fa', trailingslashit( $uploads_dir['baseurl'] ) . 'wpl_assets/font-awesome.min.css' ); wp_enqueue_style( 'preload-kava-icons', trailingslashit( $uploads_dir['baseurl'] ) . 'wpl_assets/nucleo-outline.css' ); }
Добавить в перенесённые файлы
font-display: swap;
Прелоад скриптов
add_action('wp_head', function () { global $wp_scripts; foreach($wp_scripts->queue as $handle) { $script = $wp_scripts->registered[$handle]; //-- Weird way to check if script is being enqueued in the footer. if($script->extra['group'] === 1) { //-- If version is set, append to end of source. $source = $script->src . ($script->ver ? "?ver={$script->ver}" : ""); //-- Spit out the tag. echo "<link rel='preload' href='{$source}' as='script' onload='var script = document.createElement('script'); script.src = this.href; document.body.appendChild(script);'/>\n"; } } }, 1);
Прелоад стилей
function add_rel_preload($html, $handle, $href, $media) { if (is_admin()) return $html; $html = <<<EOT <link rel='preload' as='style' onload="this.onload=null;this.rel='stylesheet'" id='$handle' href='$href' type='text/css' media='all' /> EOT; return $html; } add_filter( 'style_loader_tag', 'add_rel_preload', 10, 4 );
С уважением, Цифровой Алекс