Skip to content
← Back to Community
Private Repls question
Profile icon
GavHern

I just got hacker plan and I'm wondering something about private repls.

If I have a repl that has a repl.co URL (like an HTML, PHP Web Server, things of the sort), would people have access to that? I want to secure some backend code but I want people to still be able to access the frontend, ,if that makes any sense.

Answered by AdCharity [earned 5 cycles]
View Answer
Voters
Profile icon
karthikpapa
Profile icon
GavHern
Comments
hotnewtop
Profile icon
AdCharity

Yes. The site will still be hosted and anyone will be able to view it. Making a repl private only prevents people from looking at the source (although if someone opens developer tools or control u on the actual site, everything on the site will be exposed; websites are client based.)

Profile icon
GavHern

@AdCharity cool thanks!

Profile icon
HackermonDev

Enjoy your 90 days hacker plan ( if you got it from the coupon )

Profile icon
GavHern

@PDanielY I did, thank you!

Profile icon
AdCharity

I recommend using a node.js repl and using .env files to hide any keys. Then you can use sockets.io to communicate with the client, rather than actually having any secret keys on the client side.

Profile icon
MrEconomical
Profile icon
GavHern

@AdCharity Thanks for the tip! I don't keep any API keys laying around in repls since, even if I can make them private, it feels a little too unsafe. Final products are hosted elsewhere.

Profile icon
AdCharity

@GavHern oo Heroku?

Profile icon
GavHern

@AdCharity Yeah I feel heroku is more secure since it doesn't have the text-editor aspect that you can see the code on. I could be completely wrong here though. I mainly used it previously because it was free and secure (since the cannon version of repl.it had exposed source code for anyone who knew the repl name and your user name)

Profile icon
AdCharity

@GavHern well u can get private keys on heroku too :D

Profile icon
AdCharity

@GavHern u got a discord??

Profile icon
owisalaa

HOW Get access to Private repls

Profile icon
GavHern

@owisalaa you need replit hacker plan

Profile icon
owisalaa

HOW TO GET ACSSESS