dewanakl / dikitlink

DikitLink - URL Shortener App dengan Kamu PHP Framework
https://dikitlink.vercel.app
MIT License
8 stars 4 forks source link

Referrer #1

Closed yesyeahvh123 closed 2 years ago

yesyeahvh123 commented 2 years ago

Hello sir can you add function allow/block referrer from urls Example: i want block traffic from Facebook and allow from Google Thank you for creating great script

dewanakl commented 2 years ago

Hello, thanks for trying this app. Sorry, your function or feature request is not possible because the referrer cannot be blocked.

Don't worry, this app can increase the time to open or close the link and set a password to open it.

You can request such a feature, thank you sir

yesyeahvh123 commented 2 years ago

sir, why not use http referer header

dewanakl commented 2 years ago

sorry sir, I would not recommend using HTTP_REFERER because I read this on stackoverflow

https://stackoverflow.com/questions/36240145/how-to-use-serverhttp-referer-correctly-in-php

yesyeahvh123 commented 2 years ago

Sir can you tell me how to deloy to vercell? i deploy to vercel but its not working, do i need to add anything else? Can you add implementation guide on free platforms like railway, glitch? Thank you very much.

dewanakl commented 2 years ago

This app like laravel sir, I will write how to use it, in the next 1 or 2 days

dewanakl commented 2 years ago

How to run ?

yesyeahvh123 commented 2 years ago

Sir I'm a newbie with no experience, can you guide me more clearly, or can you create a deloy button on Vercel?

dewanakl commented 2 years ago

I understand sir, before that you can try on localhost first and the steps are already above, sir.

yesyeahvh123 commented 2 years ago

Sir, I'm really sorry but it's difficult for inexperienced people like me, do you have specific instructions, or buttons to deploy to platforms like vercel, glitch, railway...thank you very much

dewanakl commented 2 years ago

sorry sir, i forgot to say that you need to add env in vercel like this picture, to get the value taken from the ".env" file already using the command "php saya key" (to fill the value app_key automatically). Thank you sir

https://ibb.co/KhYh7GM https://ibb.co/4ZF8ZNV

yesyeahvh123 commented 2 years ago

Sir I'm a newbie with no experience, can you guide me more clearly, or can you create a deloy button on Vercel?

dewanakl commented 2 years ago

Ok sir, I will make a video for you via youtube

yesyeahvh123 commented 2 years ago

I'm looking forward to your video

dewanakl commented 2 years ago

https://drive.google.com/file/d/1OE8rgypiPwD7gqLWlByY09bxv7wuzvoY/view?usp=sharing

https://drive.google.com/file/d/1nDzlkfkVyiSj6eDJ2KM_3OmZaRhWHVvy/view?usp=sharing

dewanakl commented 2 years ago

Sorry sir, I just had time to make it now. there are 2 parts sir, and I also found a small error in the vercel env in the second video. Thank you

yesyeahvh123 commented 2 years ago

thank you so much for making video sir i try 2 times but get error Page Expired ! when login/register can you tell me what i do something wrong?

dewanakl commented 2 years ago

Are cookies in your web browser active, sir?

dewanakl commented 2 years ago

I'm sorry, I didn't upload the video to YouTube

yesyeahvh123 commented 2 years ago

yes cookies active

yesyeahvh123 commented 2 years ago

i dont known what wrong

dewanakl commented 2 years ago

try application name (APP_NAME) not using spaces and add a new env with key "HTTPS" value "true"

dewanakl commented 2 years ago

This app_key is very private and no one should know about it, so please delete the photo before others find out, thank you sir

yesyeahvh123 commented 2 years ago

thank you so much sir problem is aplication name (APP_NAME) using spaces

yesyeahvh123 commented 2 years ago

can you add the feature to batch select links to completely delete, remove the password of the selected links, set the password in bulk, edit the password in bulk...generally edit multiple links at the same time?

yesyeahvh123 commented 2 years ago

and can use Upstash (in Vercel) for database?

dewanakl commented 2 years ago

it can but i'm struggling in good ui ux in this case

dewanakl commented 2 years ago

I've tried "supabase" from vercel but the pgsql version in vercel is still small, here's the phpinfo link from vercel

https://phpshow.vercel.app/

yesyeahvh123 commented 2 years ago

This project use Upstash for database https://github.com/steven-tey/dub#deploy-your-own

dewanakl commented 2 years ago

the project uses typescript sir

yesyeahvh123 commented 2 years ago

i connect mariadb with DB_DRIV value mysql but get error Capture can you help me

yesyeahvh123 commented 2 years ago

Capture2

yesyeahvh123 commented 2 years ago

something wrong?

dewanakl commented 2 years ago

make sure the env entry is correct sir

yesyeahvh123 commented 2 years ago

I have checked very carefully, there is nothing wrong, because if wrong, the database will not be created

yesyeahvh123 commented 2 years ago

I use mysql at alwaysdata.com

yesyeahvh123 commented 2 years ago

can you go to alwaysdata.com to try creating mysql?

yesyeahvh123 commented 2 years ago

DB_DRIV = mysql DB_PORT = 3306 is right?

yesyeahvh123 commented 2 years ago

it is mysql mariadb 10.6

dewanakl commented 2 years ago

Screenshot 2022-10-02 154007 Screenshot 2022-10-02 154017 Screenshot 2022-10-02 154057

dewanakl commented 2 years ago

Screenshot 2022-10-02 154330

dewanakl commented 2 years ago

work well sir

yesyeahvh123 commented 2 years ago

sorry sir my mistake, do you think alwaysdata.com site is better than elephantsql.com? is there any better site for mysql database?

dewanakl commented 2 years ago

Honestly sir, I can't say that because I was looking for a free postgresql hosting that is elephantsql, but I think postgresql on heroku is very good and safe but the free service will end as far as I know, thank you sir

yesyeahvh123 commented 2 years ago

Sir I don't want to use statics because it will consume database space, what should I do?

dewanakl commented 2 years ago

good idea sir, I can add a feature whether you want statistics or not by editing it

yesyeahvh123 commented 2 years ago

great feature, i'm looking forward to it

yesyeahvh123 commented 2 years ago

have you tried the glitch, it's the same as vercel, can you try implementing it?

dewanakl commented 2 years ago

Sorry sir, where is the error, may I know?

yesyeahvh123 commented 2 years ago

I don't know if there is an error but I don't know how to implement it sir

yesyeahvh123 commented 2 years ago

glitch.me this website same as vercel.com