Several years ago I developed a website for a wholesale company that wanted to keep its online catalog (and wholesale pricing) private. Short of manually reviewing each submitted application, I was really stuck on how to accurately accomplish this.
This has also come up in other web projects requiring registration to access certain "slightly secret" information - including members of the press, and dealers. With most of these applications receiving very little in terms of actual submissions, it was easy to dismiss the task of automatically validating the form as impossible (or too much effort).
Lately however, there has been a very large increase in registrations, and it would make sense to automate this process if at all possible.
The site is developed in PHP, and I have tried the following:
The regex is just standard, any-user validation. The scraping was unreliable (and questionably following the terms & conditions)
How do other developers deal with the issue of business/press validation, and how do they justify this to their clients?
Thanks loads
US Phone Number Has Ten DigitsValidates that the Phone number is in (999) 999-9999 format. This works by using the REGEX function to check that the number has ten digits in the (999) 999-9999 format. Error Message: US phone numbers should be in this format: (999) 999-9999.
Validating email addresses can be done by looking up against a large data set, with event data including hard bounces, deliveries, and engagement, as well as incorporating syntax validation, typo detection, DNS queries for valid domains, and quality checks for free, role-based, and disposable email addresses.
Visit www.textmagic.com or download the TextMagic mobile app on google play store. Enter your phone number and country and click on Validate Number. This app will show you the status of the number if it is active or not. Another app you can use is Phone Number Monitoring.
Once you get past the human vs. bot screening, you're looking for some way of distinguishing the merely curious non-target visitor (say, the proverbial 14-year old kid) from those you want to let in. As the other commenters say, there's no universal Turing machine way to identify, let alone evaluate, a purported reporter or business person who might be interested in your site.
One thing you might consider is posing the question "please briefly describe your interest in [the site] and the specific aspects of our products or services that interest you." Then develop some experience based heuristics for automated screening. First, run it through a spam filter, next score for keywords, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With