Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2025, 01:47 PM   #1
LunarEclipse
Junior Member
LunarEclipse began at the beginning.
 
LunarEclipse's Avatar
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Location: EU
Device: Kindle K4B
Block Amazon via hosts file

This is a simple KUAL extension which lets you block some of Amazon's servers to prevent them from deleting part of MKK (the Kindlet DevCerts) when connected to the internet but not registered with Amazon. Notably it doesn't block the NTP servers to allow time sync.

The list of servers is based on the one I found in this repository https://git.sr.ht/~sotirisp/kindle-hacks

I tested the block/install script on a k4b and it worked fine.

I tested the unblock/uninstall script with "sed --posix" on desktop Linux and it's a very simple one so it should work anywhere in theory, but just in case, there's a backup of the original /etc/hosts from my k4b in the package. Granted the install script appends things to /etc/hosts so it's non-destructive in the first place.

Of course you shouldn't use this if you do want to use Amazon's online services with your kindle.

To install, extract the archive into your KUAL extensions folder, then run the block option in the KUAL menu.

To uninstall, first run the unblock option and wait for the kindle to reboot, then you can remove the extension's folder.

The list below follows this format:
File | Release Date | Size | SHA1
Attached Files
File Type: zip block_amazon-v1.0.0.zip (2.0 KB, 24 views)
LunarEclipse is offline   Reply With Quote
Old 11-01-2025, 03:20 PM   #2
miciy5
Junior Member
miciy5 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: kindle keyboard
Just checking - Do I need to manually block amazon every time the device is rebooted?
miciy5 is offline   Reply With Quote
Advert
Old Yesterday, 07:44 AM   #3
qadzek
Junior Member
qadzek began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2024
Device: Kindle 4 NT, Kindle 3
Quote:
Originally Posted by LunarEclipse View Post
This is a simple KUAL extension which lets you block some of Amazon's servers to prevent them from deleting part of MKK (the Kindlet DevCerts) when connected to the internet but not registered with Amazon. Notably it doesn't block the NTP servers to allow time sync.
Thanks a lot for sharing this script. It works flawlessly so far on my K4!

Now I no longer need to go through the registration process to keep using KUAL. Before your extension, registering was the only way for me to avoid the error:

Code:
This device is not authorized as a test Kindle by the developer of this item. Please contact the developer.
The uninstall script didn't work on my K4, though:

Code:
sed: invalid option -- 'z'
This did work:

Code:
awk '/# BEGIN block_amazon/,/# END block_amazon/{next} { print $0 }' /etc/hosts > /tmp/hosts.tmp
cp /tmp/hosts.tmp /etc/hosts
Quote:
Originally Posted by miciy5 View Post
Just checking - Do I need to manually block amazon every time the device is rebooted?
No, running the install script once should be sufficient. In my experience, it survives reboots.

Last edited by qadzek; Yesterday at 07:46 AM.
qadzek is offline   Reply With Quote
Old Yesterday, 04:18 PM   #4
LunarEclipse
Junior Member
LunarEclipse began at the beginning.
 
LunarEclipse's Avatar
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Location: EU
Device: Kindle K4B
Quote:
Originally Posted by miciy5 View Post
Just checking - Do I need to manually block amazon every time the device is rebooted?
It does survive reboots.

Quote:
Originally Posted by qadzek View Post
This did work:

Code:
awk '/# BEGIN block_amazon/,/# END block_amazon/{next} { print $0 }' /etc/hosts > /tmp/hosts.tmp
cp /tmp/hosts.tmp /etc/hosts
Thank you, I will update it and include this instead!

Last edited by LunarEclipse; Yesterday at 04:19 PM. Reason: forgot a quote closing tag
LunarEclipse is offline   Reply With Quote
Old Yesterday, 04:49 PM   #5
LunarEclipse
Junior Member
LunarEclipse began at the beginning.
 
LunarEclipse's Avatar
 
Posts: 6
Karma: 10
Join Date: Oct 2025
Location: EU
Device: Kindle K4B
Can't find a way to edit the first post so I'll just drop this here.

Version 1.0.1, bringing you a working unblock script.

File | Release Date | Size | SHA1
I've also made a public git repository on Codeberg which will have the full history of changes and the same releases as I put in this thread:
https://codeberg.org/LunarEclipse/kindle-block-amazon
Attached Files
File Type: zip block_amazon-v1.0.1.zip (2.5 KB, 2 views)
LunarEclipse is offline   Reply With Quote
Advert
Old Today, 03:48 AM   #6
qadzek
Junior Member
qadzek began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2024
Device: Kindle 4 NT, Kindle 3
I just want to confirm that your script also works for the Kindle K3. Thanks again.
qadzek is offline   Reply With Quote
Old Today, 09:32 AM   #7
miciy5
Junior Member
miciy5 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: kindle keyboard
Thanks!
miciy5 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking updates with Kindle's hosts file Shucking5230 Kindle Developer's Corner 1 05-23-2024 07:56 PM
Editing Hosts File to block telemetry everrest Kindle Developer's Corner 2 06-09-2021 10:49 PM
Can /etc/hosts be used to block OTA updates? zaoqi Kindle Developer's Corner 1 08-18-2019 10:35 AM
Amazon to block Australian shoppers from its US website Inukami News 43 06-23-2018 05:52 PM
Block Amazon Access ? dhruvbhutani Kindle Developer's Corner 10 08-03-2011 03:05 AM


All times are GMT -4. The time now is 04:20 PM.


MobileRead.com is a privately owned, operated and funded community.