Ask coding questions

← Back to all posts
Forking
CoolJames1610 (281)

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)

Commentshotnewtop
ZDev1 (51)

buy the hacker plan and make the repl private

CoolJames1610 (281)

I mean once its been shared @ZDev1

ZDev1 (51)

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

DynamicSquid (1132)

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.

CoolJames1610 (281)

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

DynamicSquid (1132)

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

DynamicSquid (1132)

@CoolJames1610 send out a request to repl.it

DynamicSquid (1132)

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

Warhawk947 (453)

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

DynamicSquid (1132)

@Warhawk947 wait, but you can still post it?

CodingCactus (2145)

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

CoolJames1610 (281)

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

CodingCactus (2145)

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

CoolJames1610 (281)

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

CoolJames1610 (281)

and so therefore cannot use it

Baconman321 (61)

@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.

CoolJames1610 (281)

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

Baconman321 (61)

@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

CoolJames1610 (281)

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