I want users to be able to submit a URL, which gets checked against the database to see if there is already an entry. However, I want the check to also ignore the domain.
For example if www.example.com exists, then www.example.net, www.example.gov, etc should also be rejected. However an SQL check here will come back with 0 records, since they are considered different.
Is there any efficient way to do this? The only way I can think of is to delimit the given URL and take the main domain and search for that particular domain using SQL's 'Like' functionality. However, this would cause problems when dealing with urls like blogspot, etc.
I'm stumped, any advice would be great!