yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] DragonHunt3r:
I don't really understand what u mean but if u take the correct lists with the ad's u want to block u can just import em in and block those ad's

U can always run adaway and PeerBlock together

Btw folks I think I'm ready to begin at the history list now :), finished the CSV Format

Thinking also of when u see the list of blocked/allowed connections that you're able from that list to block a allowed connection incase the ip address was not in the blocklist

Was thinking about also having mac-address filtering, maybe handy for only having specific computers connecting to ur device and not everyone?
[Xposed Framework Modules] godofgeeks:
Thanks for all your efforts ...features you have in mind are great.....however I like your plugin just as it is ..light weight...easy to use ...simply awesome ...however there is one thing I may want ...removal of placeholders :thumbup:
[Xposed Framework Modules] :
For some reason, I get a parsing error. :( I'm on stock rooted 4.1.2 with xposed 2.1.4.
[Xposed Framework Modules] DragonHunt3r:
Are you sure you're using version 1.02 ? people had this problem with version's 1.0 and 1.01
[Xposed Framework Modules] :
That did it. Thanks. :)
[Xposed Framework Modules] xrhstospro:
excellent job but why it have 2 icons?
[Xposed Framework Modules] danlivesey:
That's a known bug and it's fixed in the next update.
[Xposed Framework Modules] danlivesey:
Nice work, can't wait to try it out with the new update. Mine says it blocking over 900 connections at the min. I'm not to bothered with editing the list as the list will just keep refreshing it's self every time it's blocked won't it?
[Xposed Framework Modules] DragonHunt3r:
There is no updater yet for the lists so if the blocklists are getting updated for now u have to manually put them back in the PeerBlockLists directory

The history list looks like this currently, need to add now so u can view each app their connections and block a connection
[Xposed Framework Modules] godofgeeks:
Could anyone please do me a favor as I can't download list from the OP given site through my phone ...please upload various necessary updated lists ...thanks in advance

Could you please upload some updated lists that you think are important ;)
[Xposed Framework Modules] DragonHunt3r:
Did anyone find bugs or anything ?

This are currently the changes for 1.03:

Fixed DNS/Connection counters

Fixed double icons

Added history, system apps included (no root required)

Created CSV Format for saving settings

Improved minor things

Memory leak fix

Still need to add in history to click at any app to see their whole history and to block a specific ip from the history list

Oh well so far it goes great, from time to time I see connections going to "ec2-174-129-137-11.compute-1.amazonaws.com" being blocked no clue what that is but it's blocked :D

Just a note: Every connection needs upto ~800 milliseconds (almost 1second) to see if connection needs to be blocked or not, will improve this with cache

It takes for me ~800msec since I'm blocking like 800million hosts
[Xposed Framework Modules] danlivesey:
I have not had any other bugs yet, it seems to be working, just waiting patently for 1.03. Thanks
[Xposed Framework Modules] Dudebowski:
Seems to work just like pgl, took my master_blocklist from var/lib/pgl and pushed to sdcard/peerblock, reload cache took about 5 minutes but seems my desktop allow list was in the master and ported to android. Thank you thank you many thanks... been hoping for this for some time, keep up the great work

sent from the mobile thing
[Xposed Framework Modules] Zephyr!:
What will paranoid mode do?

Make.Believe

If you're good at something

Never Do It For Free - JOkER
[Xposed Framework Modules] danlivesey:
No apps will connect to the internet.
[Xposed Framework Modules] Zephyr!:
And if I want to select which applications should connect and which not, then?

Make.Believe

If you're good at something

Never Do It For Free - JOkER
[Xposed Framework Modules] DragonHunt3r:
Good to hear :) Some stuff got improved like rebuilding the list first it took me also a couple of minutes but improved it and now it's somewhat close to ~10 seconds for ~300000 ip ranges

I've not added this feature yet, will add this to the todo's
[Xposed Framework Modules] hcarrega:
Any option to add in future releases a way to download lists directly?
[Xposed Framework Modules] Dudebowski:
I would assume he's hoping he can find enough time and heart to code port all the most useful functions of peerblock and pglgui. Someone get this man a couple weeks worth of coffee and pizza.

Just think... This, your favorite vpn client, an iptables manager like afwall, and tethering == simple, portable problems for (C)trolls ;)

sent from the mobile thing
[Xposed Framework Modules] DragonHunt3r:
Haha would love some pizza :D, pizza helped me yesterday so you're able to block hosts from history

Still need to test it completely tho if it works or not, we're getting close to 1.03 release ^.^

Update: Tested blocking hosts when blocking from history and seems to be working fine, Changed yes/no buttons to IpAddress/HostName/Subnet /24

With blocking the subnet it means it will not block just 1 ip, but 256 Ip's a range of xxx.xxx.xxx.0 till xxx.xxx.xxx.255

When blocking from history a new file in the PeerBlockLists directory is created, this list is compatible with PeerBlock at windows!

Added to the todo's
[Xposed Framework Modules] mastertantoo:
Looking forward to the update.

Perhaps the cache could rebuild itself after changes are made. Give it a yes/no confirmation if you like.
[Xposed Framework Modules] DragonHunt3r:
Good idea, added it :)

Note: This weekend version 1.03 will be ready and will be most likely also in the market ;)
[Xposed Framework Modules] jawz101:
here's a turd load of blocklist url's if anyone is interested. I just scraped iBlocklist and a few other places.

bogon and business lists feel like overkill. It will block basically half of the IPv4 address range which feels frivolous to me. I don't know how much impact the size of the blocklist will affect memory but I'd purpose it for ads.

I thought about making a script to wget & gunzip all of the lists I'd like and put them into the folder. Just haven't got to it yet.

it would be a file with 2 lines for each list

wget -P /sdcard/PeerBlockLists/ http://list.iblocklist.com/?list=bt_ads

gunzip /sdcard/PeerBlockLists/bt_ads

save it as bl_update.sh on your sd card partition

go into terminal

sh /sdcard/bl_update.sh

Several of these are likely duplicates as iblocklist likes to list lists more than once

Most others I would think are what your purpose is. If you're torrenting I suppose blocking a ton of stuff feels appropriate. I'm mainly concerned with ads, spyware, malware so I'm probably going to stick with those

apple http://list.iblocklist.com/?list=aphcqvpxuqgrkgufjruj

ads http://list.iblocklist.com/?list=bt_ads

Atma http://list.iblocklist.com/?list=tzmtqbbsgbtfxainogvm

bad-peers http://list.iblocklist.com/lists/bluetack/bad-peers

bogon http://list.iblocklist.com/?list=bt_bogon

bt_proxy http://list.iblocklist.com/?list=bt_proxy

bt_rangetest http://list.iblocklist.com/?list=bt_rangetest

Business ISPs http://list.iblocklist.com/?list=jcjfaxgyyshvdbceroxf

CI Army http://list.iblocklist.com/?list=npkuuhuxcsllnhoamkvm

dhca_faker http://list.iblocklist.com/lists/dchubad/faker

dhca_hacker http://list.iblocklist.com/lists/dchubad/hacker

dhca_spammer http://list.iblocklist.com/lists/dchubad/spammer

DROP http://list.iblocklist.com/?list=sh_drop

dshield http://list.iblocklist.com/lists/bluetack/dshield

edu http://list.iblocklist.com/?list=bt_edu

forumspam http://list.iblocklist.com/?list=ficutxiwawokxlcyoeye

General Corporate Ranges http://list.iblocklist.com/?list=ecqbsykllnadihkdirsh

hijacked http://list.iblocklist.com/lists/bluetack/hijacked

level1 http://list.iblocklist.com/?list=bt_level1

level2 http://list.iblocklist.com/?list=bt_level2

level3 http://list.iblocklist.com/?list=bt_level3

malc0de http://list.iblocklist.com/?list=pbqcylkejciyhmwttify

Malicious http://list.iblocklist.com/?list=npkuuhuxcsllnhoamkvm

Microsoft http://list.iblocklist.com/?list=bt_microsoft

Palevo http://list.iblocklist.com/?list=erqajhwrxiuvjxqrrwfj

Pedophiles http://list.iblocklist.com/?list=dufcxgnbjsdwmwctgfuj

primary-threats http://list.iblocklist.com/lists/tbg/primary-threats

RapidShare http://list.iblocklist.com/?list=zfucwtjkfwkalytktyiw

Search Engines http://list.iblocklist.com/?list=pfefqteoxlfzopecdtyw

sh_drop http://list.iblocklist.com/?list=sh_drop

spider http://list.iblocklist.com/?list=bt_spider

SpyEye http://list.iblocklist.com/?list=zvjxsfuvdhoxktpeiokq

spyware http://list.iblocklist.com/?list=bt_spyware

tor http://list.iblocklist.com/?list=tor

web-exploit http://list.iblocklist.com/lists/bluetack/web-exploit

ZeuS http://list.iblocklist.com/?list=ynkdjqsjyfmilsgbogqf
[Xposed Framework Modules] godofgeeks:
Thanks mate :thumbup: few days back i needed these URLs as I couldn't fetch list from my phone ...BT later I managed myself bt to my disappointment nobody else tried to provide me these lists.... :(

anyways I am glad that you took initiative of posting of such URLs...I am not having access to my computer otherwise I would have posted it myself ..

Don't know if many list will make the system slow BT I personally using spyware and ads lists :)

Sent from my Super Geeky Handheld Device :cool:

---------- Post added at 07:46 AM ---------- Previous post was at 07:34 AM ----------
[Xposed Framework Modules] jawz101:
I'm just using ads and spyware myself. I'm going to try removing some of those dup lists.

When I loaded some of the lists in the megabyte range the app kinda locked up on the list merge.

Anyhow, for now it's been easy to use advanced download manager to grab those and save the compressed files. I then use an app to bulk extract them into the peerblock folder and I'm done.

as far as memory usage I wouldn't know. All of the lists uncompressed on my computer prior to a merge are 64MB. If I take the top 10 file sizes out the remaining total about 1MB.

I personally don't think that's a lot on my phone with 2GB memory. I don't know what the effect would be on cpu usage depending on how blocking functions. Again, that may be negligible but that would be a question for the developer.

I removed some of the duplicates. I also removed the 3 IANA reserved lists as they'd break being on a home network- I don't know why you'd want to do that.

fyi- bt_level1 blocks google play store from working. That's the list considered 'primary threats' to file sharing so whatever. I'm just sticking to ads and spyware. and maybe gov't since I found a list on pastebin :P.

The lists with the biggest file size (in kilobytes) are the following so I'd consider not using them or maybe seeing if the app can actually merge them if your testing it:

primary threats 4897.486

General Corporate Ranges 4072.268

bt_level1 3640.725

bt_level2 1313.58

bt_edu 756.629

Business ISPs 451.954

bad-peers 445.265

Atma 374.818

bt_level3 260.584
[Xposed Framework Modules] DragonHunt3r:
Used all the lists u provided above and the cache file is 5.4mb, the lists in total are 48.9mb blocking now 1.2billion ip's :D

Did some benchmark and to see if ip must be blocked it takes for me ~1200milliseconds (1.2 second)

I will soon improve the performance by using multiple threads
[Xposed Framework Modules] godofgeeks:
But won't the multiple thread will increase the ram consumption ...mine is 512 ...don't know how it will perform on my phn.

Sent from my Super Geeky Handheld Device B)
[Xposed Framework Modules] DragonHunt3r:
It will only increase the cpu usage for a short time but not really ram
[Xposed Framework Modules] godofgeeks:
Sounds kewl....looking forward to it then :)

Sent from my Super Geeky Handheld Device B)
[Xposed Framework Modules] DragonHunt3r:
Version 1.03 is up! look at the first post to grab the download

Please report all the bugs you find, thanks :)

Fixed DNS/Connection counters

Fixed double icons

Memory leak fix

Added history, system apps included (no root required)

Created CSV Format for saving settings

Improved performance

Apps with abnormal I/O behavior will get no internet

Updated error handling in rebuilding the cache list

Block hosts/subnet/ip from the history

App will be shown now in the 'Last Blocked Host'

Added comma's at the 'Blocking xx Ips' to read it better

Hooking a extra API if some rooted apps are calling it directly

Added to changelogs and about scrollbars
[Xposed Framework Modules] godofgeeks:
Its size has significantly grown

Sent from my Super Geeky Handheld Device B)
[Xposed Framework Modules] madsponge26:
can install even if i have ad away?
[Xposed Framework Modules] jawz101:
Yes. It's a different blocking method.

---------- Post added at 09:16 AM ---------- Previous post was at 09:13 AM ----------

It's significantly faster merging
[Xposed Framework Modules] DragonHunt3r:
PeerBlock For Android is now available in the play store!

Please uninstall PeerBlock and then re-install it from the play store ;)

https://play.google.com/store/apps/details?id=com.peerblock
[Xposed Framework Modules] jawz101:
JB 4.3 App crashes when I use the back button to close the app, go back in a few times, navigate around, and repeat. I sent in reports through Google's error feedback service.
[Xposed Framework Modules] godofgeeks:
Or we can simply fix the market link :)

- Sent from my Super Geeky Handheld Device :cool:
[Xposed Framework Modules] DragonHunt3r:
The link doesn't work ? it seems to work for others :confused:
[Xposed Framework Modules] hcarrega:
It works
[Xposed Framework Modules] vauge:
Is auto updating on the to-do list?
[Xposed Framework Modules] DragonHunt3r:
Yes it is and so is re-doing the UI to organize the app better with different sections :D
[Xposed Framework Modules] Depressed T.Bear:
I wonder if there's any kind of whitelist for the "block DNS" function?! When I enable it, it blocks "upload.box.com" (https://app.box.com/) so I cant use my online storage anymore ;) :P
[Xposed Framework Modules] DragonHunt3r:
Added it to the todo list, thanks for the idea ;)
[Xposed Framework Modules] Dudebowski:
the per app log is great, maybe a background color variation for blocked vs allowed.

I've got a 3.1 billion list, overhead seems negligible for both cpu and ram. I'd assume it breaks even on battery with as many blocked net transmissions there are.

I'm not sure if it's handled the same way here as I haven't seen them in the history log yet, but afwall's iptables manager can block kernel net requests and apps running as pid 0 (root) so if that's already happening or possible then hell yeah.

sent from the mobile thing
[Xposed Framework Modules] DragonHunt3r:
Every single app in android is first getting through PeerBlock and seeing if the DNS or connection should be blocked or allowed

Even rooted apps will go through this process, I need to fix some bug though when some apps are not allowed to access the storage

Oh well currently working at the new UI :o

New UI/features are not really implemented yet but oh well I'm getting there
[Xposed Framework Modules] z4rro:
Hi i have a question...this mod block ads of apk like this ad aware etc... or i select particular list??? Thanks a lot

Inviato dal mio GT-I9001 con Tapatalk 2
[Xposed Framework Modules] Dudebowski:
Looking good sir thank you.

Adaway blocks hostnames via IP resolving. Peer block blocks requests to/from IP ranges . Both apps have lists compiled by fans that block all sorts of known non-friendly hosts/IP's. up to you to define hostile/friendly/greys.

sent from the mobile thing
[Xposed Framework Modules] z4rro:
I install download ads list but more apk show ads from web site how list you say to download?

Thanks

Inviato dal mio GT-I9001 con Tapatalk 2
[Xposed Framework Modules] DragonHunt3r:
I was thinking about maybe adding a root-mode feature where it could use ip tables just incase for people with root

so maybe this will also help for deep kernel connections, will be added to the todo's

Was thinking also of coloring the blocked/allowed connections like some said before ;)

Oh ye I was thinking of making my own database format since SQLITE did not work and some others except my own formats kinda weird...

Oh well keep the opinion/idea's coming :)
[Xposed Framework Modules] ootay:
not blocking ads in android.chrome

Great app... many thanks.

Only one issue. It appears that PeerBlock is not blocking anything in Chrome browser. Checked history (PeerBlock) and Blocks:0 Allows:90.

ad.doubleclick.net among many others are still being displayed.

The above should be block in Chrome based on "block 'Ad' Keyword in the Host name" if set in PeerBlock, correct?

Also, have bt_ads.txt set in block lists which is blocking doubleclick based on IP ranges.

So, does PeerBlock not work when using android Chrome as your browser?

Many thanks for gr8 app
[Xposed Framework Modules] DragonHunt3r:
Only reason is why chrome connections don't get blocked is because I noticed the chrome browser is actually tunneling your traffic through the google servers... killing privacy like a boss

And it's very hard by that to kill ad connections since it's only going to 1 host name
[Xposed Framework Modules] jamrop:
Is that something you can enable/disable?
[Xposed Framework Modules] DocEsq:
Nice app. I have yet to download any lists yet as I wanted to check out the DNS and Ad blocking first.

So far I have had to disable the DNS blocking as it was preventing me from connecting to the Play Store.

I am running the Illusion ROM on my Note 2.

Doc
[Xposed Framework Modules] shockwaverider:
Thanks for your work, I'm having trouble getting started, though. The module is enabled and is the latest version from the Play Store, I created a PeerBlockLists directory, downloaded blocklists show up in the Block List tab, I clicked "Rebuild cache blocklist" and rebooted (at this point probably about 10 times), but the main tab shows 0 IPs, 0 hostnames and 0 connections blocked. DNS requests and hostnames containing "ad" apparently are being blocked so that part is at least functioning so maybe I'm missing something stupid, but I can't get it to use my blocklists. Running 4.0.4 stock-based ROM on SGS2 GT-i9100. Thanks!

:)
[Xposed Framework Modules] DragonHunt3r:
Yo, try to create the directory both at sdcard and external sdcard, maybe you swapped the sdcards so the app is looking at the wrong sd

Give it a try :)
[Xposed Framework Modules] shockwaverider:
OK, so I am stupid. Tried rebuilding the cache again and noticed this time that it's giving formatting errors. How to fix?
[Xposed Framework Modules] DragonHunt3r:
The format of iBlockList should be

HostName:BeginRange-EndRange

If a line in the blocklist file contains double : or more then it will cause some errors, fixed it already tho in the next update :)
[Xposed Framework Modules] shockwaverider:
It turned out to be corrupted downloads of the lists, now I need to figure out what's causing that but downloading on my pc and transferring to my sd card from there did the trick, everything's working great and again I appreciate your help and hard work. Thanks!!!
[Xposed Framework Modules] c0ns0le:
Script Uploaded see my original post, again use at your own risk and don't forget to insult the creator ;)..

http://xdaforums.com/showpost.php?p=44614617&postcount=87&nocache=1

btw, for unknown reason i'm unable to get this to be able to use the network when running from smanager. i've been having to manually run this via terminal. if you have any hints or ideas, please let me know.
[Xposed Framework Modules] DragonHunt3r:
If you waited for a little bit more I was going to add the auto-update feature for next update but non the less it's a nice script for now :D

Will put it in the thread so people can use it if they want
[Xposed Framework Modules] c0ns0le:
No worries banged it out while waiting on food for lunch. Plus gave me something to do.
[Xposed Framework Modules] condudad:
First of all thank's for this wonderful app.

I have a small problem though. The history only shows three tasks/apps, avast, android system, and google services.

I don't know why that is but can it have something to do with apps being on sd-ext? Or might it be due to having set restrictions to them using X-Privacy?

I got the lists and everything else to work but no apps/services in the history tab :confused:
[Xposed Framework Modules] Looki75:
Help please!

Dear OP,

I use an app named "You Version".

There is a section in this app which name is "reading plans".

When PeerBlock is active and with the "Block DNS" function checked, the "reading plans" fail to connect to the network...

When I open PeerBlock, it indeed says:

Last host blocked

Host: reading-plans.youversionapi.com

IP Address: 75.126.219.143

Type: DNS

App:com.sirma.mobile.bible.android

However, none of this host name or IP address is in the block list file...

How it could be?

Could you solve this issue?

Thanks!
[Xposed Framework Modules] DragonHunt3r:
The history will only show the apps that have been allowed/blocked for internet

There is a big chance that you have enabled block the 'ad' keyword, I read in your hostname reading-plans.youversionapi.com
[Xposed Framework Modules] condudad:
I see, so the list will be updated as soon as an app's communication with an ad-host is detected..?

Please excuse my noobieness :angel:
[Xposed Framework Modules] jawz101:
my church makes that app:thumbup:

---------- Post added at 01:11 AM ---------- Previous post was at 01:03 AM ----------

No. Both Blocked and not blocked show up. I'm hoping there will eventually be a toggle to log only blocked.

It is nice to see the unblocked traffic as well so I can choose whether or not I need to block a new ad getting through.

You'll see, though, that lines which say blocked= true are the ip's in your block lists.
[Xposed Framework Modules] jawz101:
In chrome you can turn off in the settings/bandwidth/reduce data usage

The trade-off is "we'll compress :Dpictures:D before you get them!"

...yeah... ad pictures.

I've had the impression that it also affects other app connections as it feels like I get less app ads suppressed with it on. I'm guessing ad providers try to tunnel their content through the browser if they can.
[Xposed Framework Modules] DragonHunt3r:
I noticed your traffic will also go through the google servers even when that feature is turned off :eek:
[Xposed Framework Modules] jawz101:
There's still some things in the chrome flags page I question chrome://flags/

Things like spdy protocol support simply because spdy is a protocol Google developed, it's supposed to compress traffic, and all of Google's ad servers are spdy enabled. I don't want to spend my free time thinking about it though.

At one point when testing adaway and adblock I had to turn off experimental spdy support for certain ads to be blocked. How j see things like quic protocol and it I question what it is. With every invention Google comes up with there's an equal and opposite intention.
[Xposed Framework Modules] Looki75:
Unfortunately, it's not as simple. If I keep "block the 'ad' keyword" enabled, but disable "Block DNS"... Then it's working fine...

Is there a bug? Cheekboxes inverted?
[Xposed Framework Modules] Droidphilev:
Hi,

New to this module so don't shoot me right away :)

-I added 2 big lists without any errors but still i don't have peerblock.dbx in list view. all banners still show up in apps like Wordfeud. I cannot imagine that + 16000 items in these wouldn't cover a single banner on my device?

-It seems that some apps do not show up in history. If i opened Wordfeud a few times (with the banner showing) it was not mentioned in history. Other apps like my mailclient are in history.
[Xposed Framework Modules] DragonHunt3r:
Some apps are not allowed to write to the sdcard orsomething but I'm on my way fixing that, Those lists are mainly for used for the computer so you maybe have 50% chance at blocking ad's

I will include soon a keyword list so it will get a higher chance at blocking ad's etc