Q
Q
Questions00012021-05-07 16:07:05
PHP
Questions0001, 2021-05-07 16:07:05

How to bypass intrusive Youtube ads? ad blockers don't help. You need to switch to a paid plan to stop ads. What can be done?

How to bypass intrusive Youtube ads? ad blockers don't help. You need to switch to a paid plan to stop ads. What can I do? But I do not want to switch to a paid plan. Is there a way to bypass the ads?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
MIK Ek, 2018-10-31
@MIKEk8

Create another php page and the first one will have

<?php
//СТРАНИЦА1
$connect = mysql_connect(localhost, =======, '=======');
$select_db = mysql_select_db('=======');

$select = mysql_query("SELECT * FROM "tabla" WHERE "kol_vo" <> 0 ORDER BY RAND() LIMIT 1");

while ($result = mysql_fetch_array($select)) {
    echo " 
Сначала ОБЯЗАТЕЛЬНО ознакомьтесь с сайтом: <a href = 'http://" . $result['zak'] . "' target= _blank><br>ОЗНАКОМИТЬСЯ</a><br><br> 
Далее разместите отзыв тут: <a href = 'http://" . $result['url_otz'] . "' target= _blank><br>РАЗМЕСТИТЬ ОТЗЫВ</a><br><br> 
Кол-во: $result[kol_vo] <br> 
<form action='СТРАНИЦА2' method='post'>
    <input type='hidden' name='id' value='{$result['id']}'>
    <button>Кнопка</button>
</form>
";
}

?>

And on the second
<?php
//СТРАНИЦА2
$sql = "UPDATE tabla SET kol_vo = kol_vo - 1 WHERE id = {$_POST['id']}";
$query = mysql_query($sql);
if (!$query) {
    die('updating error' . mysql_error());
}
header('Location: http://localhost/СТРАНИЦА1 ');

And after pressing the button, it will be transferred to the second one, where it will simply work out your script and return to the first one.
Of course, you can do it through AJAX and you don’t need to shove data from POST or GET directly into SQL, but it’s too early for this with your level. First, understand the concept of php.

M
Maxim Siomin, 2021-05-07
@Questions0001

What browser? If Chrome then use this extension. https://chrome.google.com/webstore/detail/adblock-...

V
Vasily Bannikov, 2021-05-07
@vabka

Xs like with advertising on YouTube, but UBlock origin helps me.

I
Ivan, 2021-05-17
@I_Mimic_I

This blocker helped me https://chrome.google.com/webstore/detail/adguard-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question