神刀安全网

Phone verification at no cost

Dial2Verify Twilio

Phone verification at no cost!

Well, not really. You still have to pay Twilio for the phone numbers ($1 per month each).

Idea

I stumbled this page in Twilio API documentation while working on some other idea.

The <Reject> verb rejects an incoming call to your Twilio number without billing you. This is very useful for blocking unwanted calls.

Phone verification at no cost

Noted that Twilio will trigger webhook for any incoming phone call if you set the Status Callback URL . So I thought this can be used for phone verification, with no additional cost.

Missed Call Verification

  1. User send phone number from a web form
  2. We will return a phone number for user to dial
  3. User have to dial the number within 90 seconds, otherwise verification will expired

Demo

http://dial2verify-twilio.namial.us

Dependencies

  • PHP >= 5.5.9
  • SQLite
  • Memcached

Installation

  1. Copy .env.sample content to .env
  2. Set the following details,
TWILIO_SID= TWILIO_TOKEN= MOBILE_ONLY=false # set to true if you want to accept verification from mobile number only APP_URL=http://your-site.com 
  1. composer install
  2. php artisan migrate && php artisan twilio:setup
  3. cd public/ && npm install && npm run tsc

License

Licensed under the MIT license

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Phone verification at no cost

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址