SMS sending protection [duplicate] - php

This question already has answers here:
How to protect html form from spammers?
(10 answers)
Closed 7 years ago.
I have a form, and I need to send information from it with SMS. Though I need to protect myself from people that will intentionally send lots of these SMS (that are not free, obviously).
What should I use? Cookies, sessions, blocking buttons with JS, what else?

I also use SMS for various services in my application.
Here is a suggestion that you can try:
Store all the data in Database that has been sent in the SMS, such as Sender user id, Phone no. and message along with a time stamp.
Now that you have data, you can put limit on how many SMS should be sent per day/hour by reading the details of that specific user from the database.

Related

Valid email address [duplicate]

This question already has answers here:
How to check if an email address exists without sending an email?
(15 answers)
Closed 7 years ago.
Up until Facebook closed it's doors on 'Public Post Search' I used to run a site that allowed for this function. Right now am building a new site and have a landing page that allows for the visitor (old or new) to sign up to be notified when the new site is up and running. This is done via email. Unfortunately I have suffered some people inputting non email addresses so solved that with a PHP function, however more recently I've started suffering from what are clearly not valid email addresses like 'foo#bar.com' etc...
Is there a recommended PHP function to check whether the email address is fully valid? If not, is there a free service which has an API that I could use to check whether the address is valid?
The only reliable way to know if an email address is valid is to attempt to send an email to that address and check for a hard or soft bounce.
You can validate that the format of the email address satisfies format checks and therefore could be valid. foo#bar.com would pass that check.
In the ancient days of the internet (the 90's), many SMTP servers would allow one to query "is this email address valid" without going through with sending an email. That was abused by spammers to validate spam lists, so pretty much every SMTP server has that part of the protocol disabled.

Blocking Invalid Users [duplicate]

This question already has answers here:
How to block Disposable Email Addresses in your website's registration form? [closed]
(11 answers)
Closed 7 years ago.
I'm developing an online penny auction system on PHP and MySQL. The problem is that the system gives three bids FREE per signup.
Many people register with invalid email accounts like y95dka9k7y024qn5#mailcatch.com or yopmail.com or any of that.
How I can block these accounts automatic? For now I do it manually, when I see there are more than 3 accounts invalid.
But how could I do it automatic?
During the subscription, when you check the email availability,
check also if the email end with one of theses host name:
mailcatch.com
yopmail.com
...
If it's the case, just explain that theses hostname are forbidden.

Sending SMS to users [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Programmatic SMS
Sending SMS from PHP
I have users. They've entered their mobile phones. How can I send them notifications to their mobile phones (SMS) when I want? I've found nice service (http://www.zeepmobile.com/), but they send SMS only to people who subscribed to them. I need to implement it with PHP. Thanks.
I used openmarket API to send SMS to anybody. They have pretty good documentation and SMS SDK http://www.openmarket.com/resources/sdk-download/ for different languages. Also they can send MMS too.
You can also try www.bulksms.com and send out SMS as an email. Just make sure your country is supported and yes you will need to pay a few cents for every SMS. But sending SMS is pretty easy. All what you need to do is send out email to:
[COUNTRY_CODE][CELL_PHONE_NUMBER]#bulksms.com
After purchasing some SMS's on BulkSMS.com you will also have some kind of admmin panel there. You need to set a password which you need to later use it as a email subject in order to send out SMS.
With PHP you can use mail function like:
mail("038640123456#bulksms.com", "Subject + [YOUR_CHOSEN_PASS]", "This is test SMS..");
Use Tropo.com its nice, easy to implement and less expensive.

I want acknowledgment of mail [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicates:
Is there a way to determine whether an e-mail reaches its destination?
PHP: Check who had read sent email?
I need a php or zend framework code which return a acknowledgment when I send a mail.
If user receives a mail, or not, or may be email is not correct, or when user open this mail; in all these cases I to get a acknowledgement.
How do I do this?
The only way you can know if a user opened a mail to listen for resources (images) that will download to the client (if they allow downloads) otherwise you are in the dark.
Checking the mail was sent and if the address is valid can be done but only to a certain extend the server that sends the message will report if the message could be sent but that will only be the status of the sent message on that specific server. You could setup some kind of mechanism that listens for addresses that are reported by other servers as invalid but not all the servers do this ...
You could use a third-party provider to handle the acknoweldgements for you which will lift the burden from you. Like Mailchimp but they too have limited ways to do this.
Just my 2 cents
If you want to detect the mail being opened, you will need to embed an image in the e-mail. This image is generated by a PHP url like <img src="domain.com/index.php/generate_image/123"> where 123 is the User ID you put in the e-mail so you can track which user opened that e-mail.

Get Email Response of the user [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
how to make a php script that read an email from the server?
So I want an app to send the user an email, and the user has to respond. How do I capture what the user sent back to the email?
Check the In-Reply-To header of the reply to find out which message it relates to.
There are two possibilities:
Set up a regular off-the-shelf email server, and something to parse the inbox.
Set up a special php email server that listens on port 22 and processes the incoming mail - something like james but php-based. If nothing available you'll have to roll your own.
You have to create some cron job that will retrieve inbox of your email account.
I have implemented simmilar thing but I was using tokens system too - email that was send to user had a random generated token in topic. When user replied I was looking for that token and then associate it with some 'thread' (helpdesk system).

Categories