Code: Select all
<html>
<body>
<script type="text/javascript">var some_var = false;</script>
<!-- this one probably blocked: -->
<script type="text/javascript" src="js.advertising.php"></script>
<script type="text/javascript">
if (!some_var) {
document.write("You obviously <b>block</b> Ads or JavaScript...");
} else {
document.write("We are including now <b>" + some_var + "</b> ads.")
}
</script>
</body>
</html>
Code: Select all
<?php
session_name("Torbi26");
session_start();
$_SESSION['what-would-it-look'] = $_SESSION['what-would-it-look'] + 1;
if ($_SESSION['what-would-it-look'] <= 1) {
$ads = "nice";
} else {
$ads = "bad, flashing, whatever";
}
header('Content-type: application/javascript');
?>
some_var = '<?php echo $ads; ?>';
Code: Select all
1. Load page.html - ABP "Cedric/de" blocks the script (.advertising.)
2. Simulate meta-tag by disabling ABP
3. Load page.html - shows "nice" ads
4. Reload page.hmtl - shows "bad" ads