Hacking COMPLETED Update Blocking - Self Hosted Proxy (Java)

JustBrandonT

Well-Known Member
OP
Newcomer
Joined
Mar 11, 2018
Messages
75
Trophies
0
Age
34
XP
518
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

  • src.zip
    3.8 KB · Views: 189
Last edited by JustBrandonT,

JustBrandonT

Well-Known Member
OP
Newcomer
Joined
Mar 11, 2018
Messages
75
Trophies
0
Age
34
XP
518
Country
Canada
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,

pwsincd

Garage Flower
Developer
Joined
Dec 4, 2011
Messages
3,686
Trophies
2
Location
Manchester UK
XP
4,481
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 ???
 

JustBrandonT

Well-Known Member
OP
Newcomer
Joined
Mar 11, 2018
Messages
75
Trophies
0
Age
34
XP
518
Country
Canada
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,

charlieb

Well-Known Member
Member
Joined
Jan 15, 2016
Messages
317
Trophies
0
Age
49
XP
685
Country
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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • S @ salazarcosplay:
    the author has the final aproval
  • S @ salazarcosplay:
    hunter x hunter
  • S @ salazarcosplay:
    he has not allowed anyone to continue it for him for example
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, theres a dragon ball af mod for budokai 3
  • Xdqwerty @ Xdqwerty:
    updated ship of harkinian, gonna install some hd texture pack
  • Xdqwerty @ Xdqwerty:
    I might download rayman revolution for my ps3
  • BigOnYa @ BigOnYa:
    I may try the new ram site, and download more RAM to my Switch. Not sure if ddr3 is the right ram
    for it tho. Edit- no it uses floppy Ram, just like @AncientBoi
    +1
  • Xdqwerty @ Xdqwerty:
    aeiou
  • BigOnYa @ BigOnYa:
    And sometimes Z
  • SylverReZ @ SylverReZ:
    @K3Nv2, MAGA supporters be wearing tin foil hats lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, whats maga?
  • BigOnYa @ BigOnYa:
    It stands for Maniacs Against General Acceptance
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, people rejecting general consensus about stuff?
    +1
  • BigOnYa @ BigOnYa:
    Yup, nuh its really just Trump followers
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, im not american so i dont care about trump
    +1
  • Xdqwerty @ Xdqwerty:
    or us elections
  • BigOnYa @ BigOnYa:
    Me niether, us north Koreans don't care
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    i don't care either, even if i'm american
  • BakerMan @ BakerMan:
    truth be told, i agree with psi, i dislike both candidates, but i'd probably vote trump simply because the economy was better during his presidency
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
    K3Nv2 @ K3Nv2: Canada: America's Russia