QuickDraw, kitty_kate:
My submission rules do not permit IP address URLs, so that is not an issue.
QuickDraw:
Thanks for the function. Yes it appears do what I want it to... in that it gets the domain name... but it still has the issue I mentioned in post 7, where it matches similarly named, longer domains.
- 'http://www.greenguysboard.com' is listed in my database.
- Someone comes along and submits the URL 'http://links.guyandjim.com'
- The functions suggested (and the one I was using before) all (falsely) alert the submitter "a site from 'guyandjim.com' has already been added to our lists"
I am going to have to get the domain for each site I already have, update the database with a new 'domain' field, and then do exact matching on that field for future submissions.