Blocking porn on Linux

I'm a bit stumped Jow Forums

I am going to a foreign country for 4 months and figure this would be a good time to cut out porn from my life. Problem is I am very much hooked on it and know how to disable pron blockers and such. I use Linux professionally and on my home machines.

I'm going to have a personal Linux laptop. I thought about editing the hosts file, but I know I will just change it.
I thought about changing it and changing the root password to something I'll forget, but going 4 months without my root password isn't a good idea.
I thought about removing sudoers permissions for my user account, but then I'l just put it back in.

Am I screwed? Is there something I can do to just make the hosts file unchangeable by even root? Is there some program I can use to block sites that I can't just disable with superuser permissions?

Is SELinux a solution here?

Attached: index.jpg (236x213, 8K)

Other urls found in this thread:

blog.siphos.be/2015/07/restricting-even-root-access-to-a-folder/
twitter.com/NSFWRedditVideo

Linux is a kernel. You probably mean GNU.

Fap to not porn pictures.

>good time to cut out porn from my life
if you feel your porn use causes a problem that gradually reduce it to whatever you feel comfortable with and replace it with something more productive, like exercise, when you have an urge for it.

i dont know too much about selinux, but i think it should work for you, op
caution, you may brick your system with this, or not. idk.
anyway use selinux to block root from changing the hosts file once you have listed everything, and i mean everything that you want to block on there. i dont think you can go bsack and change things once you do this. maybe another user can confirm.


blog.siphos.be/2015/07/restricting-even-root-access-to-a-folder/

fucking useless as always Jow Forums.

Is this the newest episode of OP is a retard with no self control?

Thanks, this looks like it might work.

>boot into live cd because op is a horny faggot
>disable selinux
fucking useless as always Jow Forums

I won't have access to anything like that.

>buy usb or repartition hard drive
>dd iso from the internet
if you have physical access then you can defeat its access controls

use a random generated password

I'm going to a pretty remote place. I will not have access to ISO images, external hard drive mounts, any of that other jazz.

>boot into kernel single user mode from grub or boot into efi shell directly from the bios
>disable access controls

you can disable single user and I don't have a laptop that supports EFI bullshit

my point being, this is a mental issue and you are going to find a way to circumvent any restrictions you place. if you don't have an internet connection and your porn is encrypted and the keys left at home then you'll just go and buy a porn mag if you really want to.

besides if a solution takes more than 5 mins I can probably drag myself out of it.
its *really* remote.

>is a policy I can bypass as I'll likely log in as a user with an unconfined context be useful for a personal problem unrelated to Jow Forums?

Get the fuck out of here faggot. Delete your shitty porn and just stop looking at it. Jesus fuck.

As if you can block all porn on the internet. You'll just find another source.

Just close your eyes dumbass

you can't change immediately but making it harder for yourself to view it is a good step. yes you can disable it all and probably will, but at least the act alone of disabling it can give you time to consider your decisions.

I want to know how to block Jow Forums thats the real question.

It is literally impossible to block yourself from something on a machine you physically own in a way that you can't bypass. Just take control of your life, slowly, step by step.