Open dmitrii-fediuk opened 1 month ago
The Magento catalog search spammers do not usually execute the search on your site - they do initially then post it as a link on another site so the ones executing those queries on your site are usually search engines following the link from some other site. If you block the IP you are blocking a search engine IP.
A good solution would be to reject search queries containing some characters/phrases, e.g. Site:
.
{
"mage2pro/core": "11.3.0",
"Magento": "2.4.6-p4",
"PHP": "8.2.16",
"URL": "https://www.27estore.com/catalogsearch/result/index/?cabinet_depth=6&cabinet_height=26&cabinet_width=33&q=one+night+stand+oral+sex%2C%E3%80%90Escort+Site%3ACg4s.com%E3%80%91get+over+a+one+night+stand%2Cbest+app+to+have+one+night+stands%2Cim+looking+for+a+one+night+stand%2Crough+sex+one+night+stand%2Cone+night+stand+sex+websites%2Cone+night+stand+amazon%2Ckissing+one+night+stand%2Ci+want+to+have+a+one+night+stand%2Cfind+one+night+stand+near+me%2Cone+night+stand+with+coworker%2C....56d0",
"Time": "2024-07-24 17:13:30",
"Referer": "https://search.google.com/",
"IP Address": "109.245.198.182",
"Request Method": "GET",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
}
EXCEPTION
Warning: include(var/view_preprocessed/pub/static/vendor/magento/module-theme/view/base/templates/root.phtml): Failed to open stream: No such file or directory in vendor/magento/framework/View/Result/Page.php on line 329
************************************
[]
************************************
1 Magento\Framework\App\ErrorHandler::handler
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/ErrorHandler.php#L62
vendor/magento/framework/App/ErrorHandler.php:62
2 include
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/View/Result/Page.php#L329
vendor/magento/framework/View/Result/Page.php:329
3 Magento\Framework\View\Result\Page::renderPage
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/View/Result/Page.php#L329
vendor/magento/framework/View/Result/Page.php:329
4 Magento\Framework\View\Result\Page::render
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/View/Result/Page.php#L262
vendor/magento/framework/View/Result/Page.php:262
5 Magento\Framework\View\Result\Layout::renderResult
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/View/Result/Layout.php#L171
vendor/magento/framework/View/Result/Layout.php:171
6 Magento\Framework\View\Result\Page::___callParent
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L58
vendor/magento/framework/Interception/Interceptor.php:58
7 Magento\Framework\View\Result\Page::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L138
vendor/magento/framework/Interception/Interceptor.php:138
8 Magento\Framework\View\Result\Page::___callPlugins
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L153
vendor/magento/framework/Interception/Interceptor.php:153
9 Magento\Framework\View\Result\Page::renderResult
generated/code/Magento/Framework/View/Result/Page/Interceptor.php:95
10 Magento\Framework\App\View::renderLayout
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/View.php#L221
vendor/magento/framework/App/View.php:221
11 Magento\CatalogSearch\Controller\Result\Index::getNotCacheableResult
https://github.com/magento/magento2/tree/2.4.6-p4/app/code/Magento/CatalogSearch/Controller/Result/Index.php#L168
vendor/magento/module-catalog-search/Controller/Result/Index.php:168
12 Magento\CatalogSearch\Controller\Result\Index::execute
https://github.com/magento/magento2/tree/2.4.6-p4/app/code/Magento/CatalogSearch/Controller/Result/Index.php#L110
vendor/magento/module-catalog-search/Controller/Result/Index.php:110
13 Magento\CatalogSearch\Controller\Result\Index::___callParent
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L58
vendor/magento/framework/Interception/Interceptor.php:58
14 Magento\CatalogSearch\Controller\Result\Index::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L138
vendor/magento/framework/Interception/Interceptor.php:138
15 WeltPixel\LayeredNavigation\Plugin\CatalogSearch\ResultView::aroundExecute
app/code/WeltPixel/LayeredNavigation/Plugin/CatalogSearch/ResultView.php:193
16 Magento\CatalogSearch\Controller\Result\Index::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L135
vendor/magento/framework/Interception/Interceptor.php:135
17 Magento\CatalogSearch\Controller\Result\Index::___callPlugins
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L153
vendor/magento/framework/Interception/Interceptor.php:153
18 Magento\CatalogSearch\Controller\Result\Index::execute
generated/code/Magento/CatalogSearch/Controller/Result/Index/Interceptor.php:23
19 Magento\Framework\App\Action\Action::dispatch
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/Action/Action.php#L111
vendor/magento/framework/App/Action/Action.php:111
20 Magento\CatalogSearch\Controller\Result\Index::___callParent
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L58
vendor/magento/framework/Interception/Interceptor.php:58
21 Magento\CatalogSearch\Controller\Result\Index::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L138
vendor/magento/framework/Interception/Interceptor.php:138
22 Magento\CatalogSearch\Controller\Result\Index::___callPlugins
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L153
vendor/magento/framework/Interception/Interceptor.php:153
23 Magento\CatalogSearch\Controller\Result\Index::dispatch
generated/code/Magento/CatalogSearch/Controller/Result/Index/Interceptor.php:32
24 Magento\Framework\App\FrontController::getActionResponse
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/FrontController.php#L245
vendor/magento/framework/App/FrontController.php:245
25 Magento\Framework\App\FrontController::processRequest
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/FrontController.php#L212
vendor/magento/framework/App/FrontController.php:212
26 Magento\Framework\App\FrontController::dispatch
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/FrontController.php#L146
vendor/magento/framework/App/FrontController.php:146
27 Magento\Framework\App\FrontController::___callParent
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L58
vendor/magento/framework/Interception/Interceptor.php:58
28 Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L138
vendor/magento/framework/Interception/Interceptor.php:138
29 Magento\Store\App\FrontController\Plugin\RequestPreprocessor::aroundDispatch
https://github.com/magento/magento2/tree/2.4.6-p4/app/code/Magento/Store/App/FrontController/Plugin/RequestPreprocessor.php#L99
vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99
30 Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L135
vendor/magento/framework/Interception/Interceptor.php:135
31 Magento\PageCache\Model\App\FrontController\BuiltinPlugin::aroundDispatch
https://github.com/magento/magento2/tree/2.4.6-p4/app/code/Magento/PageCache/Model/App/FrontController/BuiltinPlugin.php#L75
vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:75
32 Magento\Framework\App\FrontController::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L135
vendor/magento/framework/Interception/Interceptor.php:135
33 Magento\Framework\App\FrontController::___callPlugins
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L153
vendor/magento/framework/Interception/Interceptor.php:153
34 Magento\Framework\App\FrontController::dispatch
generated/code/Magento/Framework/App/FrontController/Interceptor.php:23
35 Magento\Framework\App\Http::launch
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/Http.php#L116
vendor/magento/framework/App/Http.php:116
36 Magento\Framework\App\Http::___callParent
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L58
vendor/magento/framework/Interception/Interceptor.php:58
37 Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L138
vendor/magento/framework/Interception/Interceptor.php:138
38 Df\Framework\Plugin\App\Http::aroundLaunch
https://github.com/mage2pro/core/tree/11.3.0/Framework/Plugin/App/Http.php#L10
vendor/mage2pro/core/Framework/Plugin/App/Http.php:10
39 Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L135
vendor/magento/framework/Interception/Interceptor.php:135
40 Magento\Framework\App\Http::___callPlugins
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/Interception/Interceptor.php#L153
vendor/magento/framework/Interception/Interceptor.php:153
41 Magento\Framework\App\Http::launch
generated/code/Magento/Framework/App/Http/Interceptor.php:23
42 Magento\Framework\App\Bootstrap::run
https://github.com/magento/magento2/tree/2.4.6-p4/lib/internal/Magento/Framework/App/Bootstrap.php#L264
vendor/magento/framework/App/Bootstrap.php:264
Related to https://github.com/27estore/site/issues/63