Skip to content
← Back to Community
Forking
Profile icon
CoolJames1610
  1. Is there a way to stop people from forking your projects?
  2. Is there a way for the program to know if it has been forked (e.g. detecting name change)
Voters
Profile icon
TakiyahSharrief
Profile icon
Academybymct
Profile icon
ConradMedrano
Profile icon
DynamicSquid
Profile icon
shadow00dev
Profile icon
ServerrHost
Profile icon
CoolJames1610
Comments
hotnewtop
Profile icon
CodingCactus

make it private

Profile icon
CodingCactus

or make a new account which no one knows about and has 0 interaction with the community, which gives you free private repls (kinda)

Profile icon
CoolJames1610

Like I mean I have connection string (MongoDB) but when ppl fork project, they are free to add/delete whatever they want :( @CodingCactus

Profile icon
CodingCactus

@CoolJames1610 :( maybe put in .env but i dunno

Profile icon
CoolJames1610

.env doesnt work since they cannot see it :( @CodingCactus

Profile icon
CoolJames1610

and so therefore cannot use it

Profile icon
CodingCactus

: (

Profile icon
Baconman321

@CoolJames1610 One thing you can do is have all the crucial information in a .env file so that if try to fork it, they won't have a fully functional repl.

Profile icon
CoolJames1610

Wait hold on. If i store connection string in an .env file, will they be able to connect to database when i share it? @Baconman321

Profile icon
CoolJames1610

Wait this might work idk @CodingCactus

Profile icon
Baconman321

@CoolJames1610 What do you mean? If you mean like the password and user info, then no, they can't see it. I use this when I try to connect to databases (sadly I can't use PDO on PHP, but that's another problem). If this is your answer, please mark it as the answer :D

Profile icon
CoolJames1610

I don't think what I'm asking for is possible sadly :( @Baconman321

Profile icon
ikpar3

@CoolJames1610 just put your connection string in the .env, and use it in your program, but when it is forked, it will be erased

Profile icon
zplusfour

buy the hacker plan and make the repl private

Profile icon
CoolJames1610

I mean once its been shared @ZDev1

Profile icon
zplusfour

@CoolJames1610 ik, this will work

Profile icon
CoolJames1610
Profile icon
zplusfour

@CoolJames1610 you don't see my latest posts
sorry fir my Eng

Profile icon
CoolJames1610

Its okay :D @ZDev1

Profile icon
zplusfour
Profile icon
DynamicSquid

Forking a project is not a bad thing. Maybe you just want to look at someone else's code. I've done it before, even amasad's done it before.

But don't worry, people don't steal your code here.

Profile icon
CoolJames1610

Its cause if they fork the project, they have access my mongodb database and can hack into it. Had problems with my GLOBAL REPL COUNTER @DynamicSquid

Profile icon
DynamicSquid

@CoolJames1610 ooh... I get it now. I guess take the other guys' advice

Profile icon
CoolJames1610
Profile icon
DynamicSquid

@CoolJames1610 send out a request to repl.it

Profile icon
DynamicSquid

@CoolJames1610 maybe like an option like "prevent forking" or "hide code"

Profile icon
Navinor

@CoolJames1610 @DynamicSquid You can make a repl unforkable if you make it a private repl, but that requires hacker plan...

Profile icon
DynamicSquid

@Warhawk947 wait, but you can still post it?

Profile icon
TakiyahSharrief

hoe to go to mincraft