Sorry if my question is not clear but what I want is if I just entered a download link into my browser (ex. domain.com/download.php?file=somefile) It will redirect to download page of the file and will not download the file But if it was submitted by form from download page it will download the the file Is it possible to do this in php? thank you in advance for someone that can help me
Sorry.. I see now that this was already ask.. but because I'm still new to php, I never saw it first because I don't know that it's called csrf protection/prevention until now