P
P
Pavel Zuev2020-04-04 18:12:18
opencart
Pavel Zuev, 2020-04-04 18:12:18

DDoS protection by cloudflare open cart appeared in modules?

I didn’t connect any protections, the hoster didn’t do anything either, but the following appeared in the admin panel in the modules.
5e88a4038f9a4925332601.jpeg
I can’t understand what it is and where it comes from. The page reloads after 5 seconds.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lazuren, 2020-04-04
@idpabloo

Do not worry, these are problems on the server from which the ads are being pulled. You can treat it like this:
In the fileadmin/controller/extension/extension/promotion.php

class ControllerExtensionExtensionPromotion extends Controller {
  public function index() {

        return '';
//		$curl = curl_init();
//
//		curl_setopt($curl, CURLOPT_URL, OPENCART_SERVER . 'index.php?route=api/promotion&type=' . substr($this->request->get['route'], strrpos($this->request->get['route'], '/') + 1));
//		curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
//		curl_setopt($curl, CURLOPT_HEADER, false);
//		curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
//		curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 30);
//		curl_setopt($curl, CURLOPT_TIMEOUT, 30);
//
//		$response = curl_exec($curl);
//
//		curl_close($curl);
//
//		if ($response) {
//			return $response;
//		} else {
//			return '';
//		}
  }
}

Comment out the controller code (or delete it) and return the empty line. This will get rid of ads forever.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question