FORUMS
Remove All Ads from XDA

[MOD][XPOSED][4.0+] PeerBlock For Android - Block Ads, Goverment and more[10-08-2013]

341 posts
Thanks Meter: 511
 
By DragonHunt3r, Senior Member on 28th July 2013, 05:00 PM
Post Reply Email Thread
PeerBlock is now available in the Google Play Store! https://play.google.com/store/apps/d...=com.peerblock

PeerBlock For Android lets you control who your phone 'talks to' on the Internet.
By selecting appropriate lists of 'known bad' computers, you can block communication with advertising or spyware oriented servers,
computers monitoring your p2p activities, computers which have been 'hacked', even entire countries!
They can't get in to your phone, and your phone won't try to send them anything either.

And best of all, it's free!

Keep in mind that I'm not a member of the PeerBlock team, I just wanted PeerBlock for phone
You're able to grab the lists from iblocklist.com so you can start blocking those evil hosts
To add lists to PeerBlock create a new directory in the root of the sdcard (not external sdcard)
Called 'PeerBlockLists' here should be all the text files
Everytime you added a new/updated list to your PeerBlockLists please press the 'Rebuild cache blocklist' and reboot so that new hosts can be blocked

WARNING:
Root is required for XPosed to be installed
Use at your own risk!
WORK IN PROGRESS. WILL EAT YOUR CAT.
MOD EDIT : WARNING - Read entire thread before use, as well as comments on play store.

Features:
  • Block million of hosts
  • Add unlimited amount of block lists
  • Allow HTTP/HTTPS Traffic when PeerBlock is enabled, this will make a security hole tho so better if u keep it off
  • Block All Traffic (Paranoid Mode) every single application in android will not have internet
  • Block DNS - Block DNS Requests
  • Block the 'Ad' Keyword in host names to give a better success rate for blocking ad's

Permissions
  • WRITE_EXTERNAL_STORAGE

Todo's
  • Check if UDP is getting blocked
  • Remove space used by Ad's
  • Add MAC-Address filter white/black lists
  • Show notifications (if enabled)
  • Making the Ip Range check multi-core
  • Create a blacklist/whitelist for apps to allow internet
  • Blocklist updater/downloader
  • Create a whitelist for hosts/Ip Addresses
  • Root-Mode with IpTables (I will not remove XPosed from the project)
  • Remove host from blocked hosts
  • A popup window which shows allow/deny for establishing a connection

Todo's Finished
  • Create history of created/blocked connections
  • Check if other devices are compatible
  • Blocklist for keywords in the HostName

How To Install
1. Install XPosed Framework
2. Install PeerBlock For Android
3. Create a directory in the sdcard called "PeerBlockLists"
4. Go into XPosed Framework Installer and enable "PeerBlock For Android"
5. Reboot your device
6. Now go to the website iblocklist.com
7. Take any list you wish for example, http://www.iblocklist.com/list.php?list=bt_ads
8. Press the Update button to download the list (or copy the Update URL into your browser to download it)
9. Now simply copy/paste the .txt file into the sdcard in the folder PeerBlockLists
10. Go into the PeerBlock app and tick "Block DNS" and "Block 'Ad' Keyword in the Host name"
11. Go to the second tab "Block Lists" now hit the "Rebuild cache blocklist"
12. Reboot your device and enjoy

How to block the goverment
1. Go to your sdcard and open the folder 'PeerBlock'
2. Open the file HostNames.txt (if not exist create it)
3. Write this in the file ".gov"
4. Save the file and be sure you have Block DNS enabled!
5. Any goverment website should be blocked

ChangeLog
1.00: Initial creation and upload of the app
1.01: Fixed App crash when PeerBlockLists directory did not exist
1.02: Changed the required API SDK to 14, Added a progress window for rebuilding the cache and some minor bug fixes
1.03:
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

Scripts people made:



Tell your opinion, Share the bugs you find.

How to download:
Find PeerBlock in the google play store by simply searching for "PeerBlock" or "PeerBlock for Android" or click this link https://play.google.com/store/apps/d...=com.peerblock

I removed downloads from the attachments so people need to grab it from the play store as it will give me all the error reports and total downloads
If the above methods for downloading don't work please contact me

Question's and Answers
Question: Can I use this together with adaway ?
Answer: Yes you can.

Question: Does PeerBlock modifies the hosts file?
Answer: No it does not.

Question: Why does nothing gets blocked?
Answer: Most likely you disabled the option "Block DNS"

Source code: https://github.com/AnguisCaptor/PeerBlockForAndroid

Contact
If you want to contact me for anything or just a chat you can add me at skype using this e-mail or just e-mail me, [email protected]
Attached Files
File Type: txt bt_ads.txt - [Click for QR Code] (132.2 KB, 10342 views)
File Type: apk PeerBlockForAndroid1.03.apk - [Click for QR Code] (603.9 KB, 14726 views)
The Following 73 Users Say Thank You to DragonHunt3r For This Useful Post: [ View ] Gift DragonHunt3r Ad-Free
 
 
28th July 2013, 05:44 PM |#2  
danlivesey's Avatar
Senior Member
Flag blackburn
Thanks Meter: 130
 
More
Nice work, I've been looking for this for ages. I always use xposed for other stuff. I've just installed peer blocker and it's force closing and I can't get into the app. I'm on 4.2.2 Xperia z custom stock Rom as I can unlock my bootloader.

Sent from my C6603 using xda premium
28th July 2013, 05:53 PM |#3  
DragonHunt3r's Avatar
OP Senior Member
Thanks Meter: 511
 
More
Quote:
Originally Posted by danlivesey

Nice work, I've been looking for this for ages. I always use xposed for other stuff. I've just installed peer blocker and it's force closing and I can't get into the app. I'm on 4.2.2 Xperia z custom stock Rom as I can unlock my bootloader.

Sent from my C6603 using xda premium

Can you take a look at your internal/external sdcard and see if a file exists called "PeerBlock.dbx"
I've only tested my app at the Galaxy S4 since that's the only device I own
Also try to start it a bunch of times and see if that helps
Also don't forget to enable PeerBlock in the XPosed Installer and reboot
28th July 2013, 06:49 PM |#4  
danlivesey's Avatar
Senior Member
Flag blackburn
Thanks Meter: 130
 
More
Yes sorry my mistake, I didn't add the folder. The app is running now. Just need to add some lists now. How do we know if it's blocking the list? On the pc peer block it shows a list of what's being blocked. Thanks

Sent from my C6603 using xda premium
28th July 2013, 07:28 PM |#5  
DragonHunt3r's Avatar
OP Senior Member
Thanks Meter: 511
 
More
Quote:
Originally Posted by danlivesey

Yes sorry my mistake, I didn't add the folder. The app is running now. Just need to add some lists now. How do we know if it's blocking the list? On the pc peer block it shows a list of what's being blocked. Thanks

Sent from my C6603 using xda premium

Currently in the app it only shows the last host that's being blocked
Will add soon something like a history list so u can see everything that been blocked

Edit: Uploaded version 1.01 which includes bug fix for not creating the PeerBlockLists directory
The Following User Says Thank You to DragonHunt3r For This Useful Post: [ View ] Gift DragonHunt3r Ad-Free
29th July 2013, 03:33 AM |#6  
jwthompson's Avatar
Senior Member
Thanks Meter: 84
 
More
Parse error on Verizon Samsung S3 4.1.2 VRBMF1 Jelly"Beans" rom

Sent from my SCH-I535 using Tapatalk 4 Beta
29th July 2013, 03:59 AM |#7  
Senior Member
Flag San Diego
Thanks Meter: 87
 
More
The app appears to run on a Nexus 4, but I can't get the website to download the blocklists on my computer or my phone so I can't really test it.
29th July 2013, 10:43 AM |#8  
DragonHunt3r's Avatar
OP Senior Member
Thanks Meter: 511
 
More
Quote:
Originally Posted by lopezk38

The app appears to run on a Nexus 4, but I can't get the website to download the blocklists on my computer or my phone so I can't really test it.

I uploaded a list for you as attachment in the thread, havefun testing
29th July 2013, 12:56 PM |#9  
danlivesey's Avatar
Senior Member
Flag blackburn
Thanks Meter: 130
 
More
I've installed the list now rebuilt and rebooted, will test it better when I get home form work.

Sent from my C6603 using xda premium
29th July 2013, 02:45 PM |#10  
Looki75's Avatar
Senior Member
Thanks Meter: 1,250
 
Donate to Me
More
Is it in your plans to make it compatible with JB 4.1.2?

Thanks
29th July 2013, 03:06 PM |#11  
badkill's Avatar
Senior Member
Flag México
Thanks Meter: 366
 
Donate to Me
More
Quote:
Originally Posted by Looki75

Is it in your plans to make it compatible with JB 4.1.2?

Thanks

+1

I hope also that compatibility with 4.1.2
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes