How to improve security of a base? (Minecraft)?

Me and my two other friends just got raided on a fairly small server. There's almost no one on anymore was super crowded before though. Anyway luckily we didn't lose anything important. So right now we're making a new f home thats over the nether bedrock all the way up bedrock where you can't see it if you were walking bedrock. And we didn't claim any faction land, we all sethome there. But how would i make this base more secure from raiders? Any tips?

Move into the overworld a good hundred thousand blocks no one will ever find it and build it underground. Unless that have xray no one will find it ever use the nether roof to get there

I recommend underground I be built an entire city underground on a server and have a self sufficient farm livestock own and other essentials caves can have water falls so water check make sure you make the entrance hidden I don't know if your as good a builder as me but you can make arrow traps double doors of iron and all sorts of things land mines, lava traps etc look it up