-
Notifications
You must be signed in to change notification settings - Fork 10
Mega Repo
This feature made to help content creators to protect their own files and share it with limited users
- User: test
- Key: 111
Repo owner will be able to create custom authentication service using simple php
file
Click here to download the file
NOTE: Repos with authentication supported only in 1.4.6+
After downloading the php
file, you will find array
at the top
there is demo user added below the $users
array.
<?php
$users = [];
//$users[username] = key
$users["9F86D081884C...."] = "F6E0A1E21945A9...";
//The demo values are: user->test, key->111
?>
as you can see you have to encode your users data with sha256
there are a lot of tools online to do that like this
use the same method to add more users
$users["new user sha256"] = "new key 256";
$users["new user sha256"] = "new key 256";
after you prepared your file, upload it to your website or anywhere you can access to it via link
and BE SURE the hosting server must support php
otherwise it will not work
NOTE: you can make your own way to deal with this process I just made simple file for anyone to use
In general WUT will hash256 the user
and key
and send them as POST request to the php
file
-
$_POST['zKu']
: hashed username -
$_POST['xRa']
: hashed key
1- Generate new repo from Utilities
2- from generate dialog activate Authentication option
- In API Link add the full link of your
php
file - In Register Link (Optional) add your custom link like contact page or register form.
3- fill the required fields then click on Generate
Once the user loaded your repo, he needs to enter the authentication data to view the content
the login will be save for future access but there will be a check each startup in case the access revoked by the owner