Netgate SG-1000 microFirewall

Author Topic: Individual message instead of 1x1 pixel  (Read 2262 times)

0 Members and 1 Guest are viewing this topic.

Offline esquire1968

  • Full Member
  • ***
  • Posts: 148
  • Karma: +1/-1
    • View Profile
Individual message instead of 1x1 pixel
« on: October 27, 2016, 01:07:44 pm »
Hi!

When a user tried to Access a blocked web-site, he gets a blank screen. How can I change this to a simple text?

Thanks!

Thomas
 

Offline javcasta

  • Hero Member
  • *****
  • Posts: 669
  • Karma: +556/-87
  • Los routers buscan la convergencia.
    • View Profile
    • PIyMenta
Re: Individual message instead of 1x1 pixel
« Reply #1 on: October 28, 2016, 05:29:26 am »
Hi.

Try it this.

At file: /usr/local/www/pfblockerng/www/index.php

comment the line

Code: [Select]
//echo base64_decode('R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==');
And put other gif image encode at bas64. For example, my: /usr/local/www/pfblockerng/www/index.php

code /usr/local/www/pfblockerng/www/index.php

Code: [Select]
<?php
/*
index.php

pfBlockerNG (DNSBL)
Copyright (c) 2015-2016 BBcan177@gmail.com
All rights reserved.
*/
header("Cache-Control: private, no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache");
header("Expires: Sat, 26 Jul 2014 05:00:00 GMT");
header("Content-Type: image/gif");
//echo base64_decode('R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==');
echo base64_decode('R0lGODlh8wD0APcAAO7T060yMr5dXeS7u8Rra/Xl5ct+frE8PPju7vHc3OfDw5YAAMu8u97e3pEA
ANTU1KtFQ96srKEVFc2CgtDa2uGzs7tVVczKys7W1+rLy9jY2Ofn58bGxtWVlaYiIvDZ2dqioszO
zvz4+NDe3pQAAMasq6orK/v6+qo7Ovv19e7u7sOcm8m0s83Q0LV1dbdKStGMjJ8REdDQ0OvNzbVc
W8KTkuHh4cSjovX19c7U1LJTUvbp6ZgICMFkZM3S0r2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17cQtzjJne5zX1udKdb3etmd7vF3YtfLBoNWeY2oKdbLXzn
W9/75ne//c3vWqDhpfXmNlEd6oANW/xb4QtneMMBvm2Cm5kOcSiF4xx+cYxnPN+Mjji3eSGEXmlc
5CNveKIg3vE/CwEX2KhFy13+cpjHXOYzp3nNbX5znMOcA19AB70bHRAAOw=='
);

// Record DNSBL HTTP Alert to logfile
$datereq date('M d H:i:s'time());
$req_agent str_replace(','''"{$_SERVER['HTTP_REFERER']} | {$_SERVER['REQUEST_URI']} | {$_SERVER['HTTP_USER_AGENT']}");
$log htmlspecialchars("DNSBL Reject,{$datereq},{$_SERVER['HTTP_HOST']},{$_SERVER['REMOTE_ADDR']},{$req_agent}\n");
if (!empty(
$log)) {
@file_put_contents('/var/log/pfblockerng/dnsbl.log'"{$log}"FILE_APPEND LOCK_EX);
}

// Query DNSBL Alias for Domain List.
$query str_replace('.''\.'htmlspecialchars($_SERVER['HTTP_HOST']));
exec("/usr/bin/grep -l ' \"{$query} 60 IN A' /var/db/pfblockerng/dnsblalias/*"$match);
$pfb_query strstr($match[0], 'DNSBL'FALSE);

// Query for a TLD Block
if (empty($pfb_query)) {
$idparts explode('.'$query);
$idcnt = (count($idparts) -1);

for ($i=1$i <= $idcnt$i++) {
$d_query implode('.'array_slice($idparts, -$i$iTRUE));
exec("/usr/bin/grep -l '^{$d_query}$' /var/db/pfblockerng/dnsblalias/DNSBL_TLD"$match);

if (!empty($match[0])) {
$pfb_query 'DNSBL_TLD';
break;
}
}
}

if (!empty(
$pfb_query)) {
// Increment DNSBL Alias Counter
$dnsbl_info '/var/db/pfblockerng/dnsbl_info';
if (($handle = @fopen("{$dnsbl_info}"'r')) !== FALSE) {
flock($handleLOCK_EX);
$pfb_output = @fopen("{$dnsbl_info}.bk"'w');
flock($pfb_outputLOCK_EX);

// Find line with corresponding DNSBL Aliasname
while (($line = @fgetcsv($handle)) !== FALSE) {
if ($line[0] == $pfb_query) {
$line[3] += 1;
}
@fputcsv($pfb_output$line);
}

@fclose($pfb_output);
@fclose($handle);
@rename("{$dnsbl_info}.bk""{$dnsbl_info}");
}
}
?>




Regards
« Last Edit: October 28, 2016, 05:40:06 am by javcasta »
Javier Castañón
Técnico de comunicaciones, soporte y sistemas.

Mi web: https://javcasta.com/

Soporte scripting/pfSense https://javcasta.com/soporte/

Offline esquire1968

  • Full Member
  • ***
  • Posts: 148
  • Karma: +1/-1
    • View Profile
Re: Individual message instead of 1x1 pixel
« Reply #2 on: October 28, 2016, 09:23:05 am »
Thanks!

It works great!

Regards,
Thomas

Offline BBcan177

  • Moderator
  • Hero Member
  • *****
  • Posts: 2554
  • Karma: +797/-5
    • View Profile
    • Click for Support
Re: Individual message instead of 1x1 pixel
« Reply #3 on: October 29, 2016, 11:15:49 am »
Keep in mind that this will also show that image for all ADvertisements in the page... Somewhat not practical....  I have in mind to add an option to allow customization of the image depending on the DNSBL Group...
"Experience is something you don't get until just after you need it."

 | http://pfblockerng.com | Twitter @BBcan177  | #pfBlockerNG |

Offline javcasta

  • Hero Member
  • *****
  • Posts: 669
  • Karma: +556/-87
  • Los routers buscan la convergencia.
    • View Profile
    • PIyMenta
Re: Individual message instead of 1x1 pixel
« Reply #4 on: October 29, 2016, 02:26:29 pm »
Hi.

So it's a 1x1 gif (for advs, only one pixel, for not disturb), but if the user knows it is an administrative block will not make complaint to the IT department  :)

Regards.
Javier Castañón
Técnico de comunicaciones, soporte y sistemas.

Mi web: https://javcasta.com/

Soporte scripting/pfSense https://javcasta.com/soporte/

Offline esquire1968

  • Full Member
  • ***
  • Posts: 148
  • Karma: +1/-1
    • View Profile
Re: Individual message instead of 1x1 pixel
« Reply #5 on: November 02, 2016, 03:05:11 pm »
Hi!

@BBcan77: As you worte, I have now a lot of "Forbidden"-Pics on some web-sites instead of blank pics. This looks a little bit confusing. It would be a great improvement to differentiate between a full blocked web-site and an adv. as an element of a site.

Best regards,
Thomas

Offline BBcan177

  • Moderator
  • Hero Member
  • *****
  • Posts: 2554
  • Karma: +797/-5
    • View Profile
    • Click for Support
Re: Individual message instead of 1x1 pixel
« Reply #6 on: November 03, 2016, 07:46:26 pm »
DNSBL will block the DNS request. It can't manipulate the browser page. In future, I plan to add the option for the user to define what gets displayed when DNSBL blocks a domain. So any domain listed in a particular group can be configured accordingly. 
"Experience is something you don't get until just after you need it."

 | http://pfblockerng.com | Twitter @BBcan177  | #pfBlockerNG |

Offline javcasta

  • Hero Member
  • *****
  • Posts: 669
  • Karma: +556/-87
  • Los routers buscan la convergencia.
    • View Profile
    • PIyMenta
Re: Individual message instead of 1x1 pixel
« Reply #7 on: November 04, 2016, 12:08:31 pm »
Hi.

Maybe in the next pfBlockerNG release?
We are waiting, great work!! :)

Regards.
Javier Castañón
Técnico de comunicaciones, soporte y sistemas.

Mi web: https://javcasta.com/

Soporte scripting/pfSense https://javcasta.com/soporte/

Offline BoxMacNCheese

  • Newbie
  • *
  • Posts: 4
  • Karma: +1/-0
    • View Profile
Re: Individual message instead of 1x1 pixel
« Reply #8 on: December 18, 2016, 06:08:18 pm »
In future, I plan to add the option for the user to define what gets displayed when DNSBL blocks a domain. So any domain listed in a particular group can be configured accordingly.
This would be a fantastic feature and would help address some of my other issues. I appreciate all of the work that you have put into this great package!

Offline frankvh

  • Newbie
  • *
  • Posts: 4
  • Karma: +2/-0
    • View Profile
Re: Individual message instead of 1x1 pixel
« Reply #9 on: January 22, 2017, 11:57:45 pm »
DNSBL will block the DNS request. It can't manipulate the browser page. In future, I plan to add the option for the user to define what gets displayed when DNSBL blocks a domain. So any domain listed in a particular group can be configured accordingly.

pfBlockerNG is wonderful. Adding this would make it even better. Sure it would be great for making it clear to users why they can't see something. But it will also be great for troubleshooting. I've had to whitelist a few domains, and each time it's been tricky to work out exactly what was going on. One example was a popular retailer (REI.com) and although their products were showing up, user reviews of those products were not. Turns out REI links to a different server for handling their product reviews, and that reviews server was being blocked. Having an easy way to replace the (invisible) 1x1 gif with a more visible "site blocked" image (or similar) would make that kind of troubleshooting go faster.

Offline MrGlasspoole

  • Full Member
  • ***
  • Posts: 154
  • Karma: +4/-0
    • View Profile
Re: Individual message instead of 1x1 pixel
« Reply #10 on: February 23, 2017, 10:42:47 am »
Hm, maybe some SVG that scales...

As somebody who comes from uBlock I'm not really understanding how stuff here works.
But i see now ads on YouTube i never saw before. There are not loaded but it shows:
Quote
Your connection is not secure.
The owner of googleads.g.doubleclick.net has configured their website improperly.

Offline

  • Full Member
  • ***
  • Posts: 102
  • Karma: +4/-0
    • View Profile
Re: Individual message instead of 1x1 pixel
« Reply #11 on: November 28, 2017, 09:14:04 am »
DNSBL will block the DNS request. It can't manipulate the browser page. In future, I plan to add the option for the user to define what gets displayed when DNSBL blocks a domain. So any domain listed in a particular group can be configured accordingly.

Is this added in the latest dnsbl version?
SUPERMICRO X7SPA-H-D525 Mini-itx, Intel Atom D525 Dual core 1.8ghz 64bit, Dual Intel 82574L Gigabit LAN ports, 4GB 800mhz ram, 30GB 2.5" SSD

Offline BBcan177

  • Moderator
  • Hero Member
  • *****
  • Posts: 2554
  • Karma: +797/-5
    • View Profile
    • Click for Support
Re: Individual message instead of 1x1 pixel
« Reply #12 on: November 28, 2017, 05:31:01 pm »
Yes it will be :)
"Experience is something you don't get until just after you need it."

 | http://pfblockerng.com | Twitter @BBcan177  | #pfBlockerNG |