close

Plugin Directory

Changeset 990392


Ignore:
Timestamp:
09/15/2014 06:35:58 PM (12 years ago)
Author:
saaiful
Message:

googlemail filter added

Location:
fraud-gmail-filter/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fraud-gmail-filter/trunk/fraud_gmail.php

    r989066 r990392  
    44Plugin URI: http://saiful.im/fraud-gmail
    55Description: Fraud Gmail / Clone Gmail / Doteted Gmail Filter For Registration.
    6 Version: 0.0.1
     6Version: 0.0.2
    77Author: Saiful Islam
    88Author URI: http://saiful.im/
     
    1111function fraud_gmail($user_email)
    1212{
     13    $user_email = strtolower($user_email);
    1314    $data = explode('@', $user_email);
    1415    if(count($data)===2)
    1516    {
    16 
    17         if(preg_match("/gmail(.*)/", $data[1]))
     17        if(preg_match("/g(oogle)?mail(.*)/", $data[1], $ext))
    1818        {
    1919            $trick = explode('+', $data[0]);
     
    2222                $data[0] = $trick[0];
    2323            }
    24             $user_email = str_replace(array('.','+'), '', $data[0]).'@'.$data[1];
     24            $user_email = str_replace(array('.','+'), '', $data[0]).'@gmail'.$ext[2];
    2525        }
    2626    }
  • fraud-gmail-filter/trunk/readme.txt

    r989066 r990392  
    1313== Description ==
    1414
    15 Gmail doesn’t recognize dots as characters within usernames (email). So when one register with a email like `saiful@gmail.com` He can register in your wordpress site using same email just by using some of Gmail’s Trick.
     15Gmail doesn't recognize dots as characters within usernames (email). So when one register with a email like `saiful@gmail.com` He can register in your wordpress site using same email just by using some of Gmail's Trick.
    1616
    17 *   Append a plus `(“+”)` sign and any combination of words or numbers after your email address. For example, if your name was `saiful@gmail.com`, you could send mail to `saiful+islam@gmail.com` or `saiful+lol@gmail.com`.
    18 *   Insert one or several dots `(“.”)` anywhere in your email address. Gmail doesn’t recognize periods as characters in addresses — we just ignore them. For example, you could tell people your address was `saiful@gmail.com`, `saiful.islam@gmail.com` or `s.a.i.f.u.l@gmail.com`. (We understand that there has beensome confusion about this in the past, but to settle it once and for all, you can indeed receive mail at all the variations with dots.)
     17*   Append a plus `("+")` sign and any combination of words or numbers after your email address. For example, if your name was `saiful@gmail.com`, you could send mail to `saiful+islam@gmail.com` or `saiful+lol@gmail.com`.
     18*   Insert one or several dots `("+")` anywhere in your email address. Gmail doesn't recognize periods as characters in addresses — we just ignore them. For example, you could tell people your address was `saiful@gmail.com`, `saiful.islam@gmail.com` or `s.a.i.f.u.l@gmail.com`.
    1919
    2020I decided to solve this issue , so i wrote a plugin which prevent bad guys from using same mail for registration.  I wish you guys enjoy this plugin.
     
    25251. Upload `fraud_gmail.php` to the `/wp-content/plugins/` directory
    26262. Activate the plugin through the 'Plugins' menu in WordPress
     27
     28== Changelog ==
     29
     30= 0.0.2 =
     31* New Method Added for `googlemail`.
     32* Case filter added
     33
     34= 0.0.1 =
     35* First release.
Note: See TracChangeset for help on using the changeset viewer.