I have to make a page which checks a link and blocks it if it's a phishing link.
What's the best/most efficient way to check URLs against a blacklist?
I could store it in MySQL or a text file (maybe use JSON in the text file and iterate through an array of blocked links?)
I was thinking if I used MySQL it would have to check the database every time the link has to be checked and this may be too resource intensive, but maybe I'm wrong about that.
Either way won't be difficult for me to implement, but I'm just curious as to what the most efficient way for this would be.