Hacking COMPLETED Update Blocking - Self Hosted Proxy (Java)

  • Thread starter Thread starter JustBrandonT
  • Start date Start date
  • Views Views 3,029
  • Replies Replies 7
  • Likes Likes 4

JustBrandonT

Well-Known Member
Newcomer
Joined
Mar 11, 2018
Messages
75
Reaction score
107
Trophies
0
Age
36
XP
539
Country
Canada
I wrote a proxy in Java that can block updates or specified URL requests that the switch or any device makes.. I currently leave it running on a RaspberryPi3 with port forwarding to allow access from anywhere. Might port it to Python3 but meh..

Anyway, thought I'd share another option for those that have routers that don't block properly (plus it was cool learning to make a proxy).
It allows you to get game updates, downloads from the eShop, but still block updates (Add more URLs in Main.java as necessary to fit your needs).


EDIT: It won't let me post a video or code in code-tags so hopefully it uploaded successfully.
EDIT: Updated code as src.zip.

Video:
 

Attachments

Last edited by JustBrandonT,
can u list the urls blocked?

Since I am new here, I can't post URLs or code in code-tags (I zipped the source code in the first post) ={
In the source code zip file I attached it has them all listed in Main.java file.

EDIT: Turns out if I remove com and net, I can post them:

It blocks:

"sun.hac.lp1.d4c.nintendo",
"receive-lp1.dg.srv.nintendo",
"app-b01.lp1.npns.srv.nintendo",
"*.baas.nintendo"
 
Last edited by JustBrandonT,
Code:
    private static String[] URLS_TO_BLOCK = {
            "sun.hac.lp1.d4c.nintendo.net",
            "receive-lp1.dg.srv.nintendo.net",
            "app-b01.lp1.npns.srv.nintendo.net",
            ".baas.nintendo.com"
    };
}

ok thanks.... is that the only ones required ???
 
Code:
    private static String[] URLS_TO_BLOCK = {
            ....
    };
}

ok thanks.... is that the only ones required ???

Might depend on region. They work for me. I block the same ones from here (I couldn't block sun.hac.lp1.d4c.nintendo in my router so I wrote this to block them.. Also the DNS blocking was blocking access to eShop for me):

gbatemp url -> /threads/dns-to-block-the-updates-of-the-switch.465952/page-4#post-7215716

That's where I got the URLs then verified which ones worked for me and that's what I included in the source. You can add what you want to it as well.

You can verify what requests your switch makes by blocking ALL the connections (`return true` in `shouldBlockRequest` no matter what) in Main.java.
 
Last edited by JustBrandonT,
If you're using a PI running Linux then you can do this without any custom software. Install your own DNS server (something like dnsmasq as it does DHCP too), and just block .nintendo.com and .nindento.net 2 lines, esay
 

Site & Scene News

Popular threads in this forum