Announcement

Collapse
No announcement yet.

Too many periods in email address

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Too many periods in email address

    MOD Request

    When we were on vBulletin 4.2.5, I had a custom MOD created for me that prevented the use of emails that contained 'too many periods' from being used when trying to create a new account.

    Real world example (got this one this morning):

    h.i.nde.rk.r.u.ca.ga.wi.lehe @ gmail.com (white space added to prevent this from being recognized as a real email address)

    These 'constructed' emails are almost ALWAYS associated with spammers or BOTS. Email addresses like these are 99.999 percent (or greater) never caught by Stop Forum Spam, for which we have an active API in use in vBulletin.

    Can you create a MOD that will block the use of these 'too many periods' in email addresses? The MOD should allow us to specify how many periods are 'too many' before the email address will be blocked.​
    The Linux Community has given me much. I do what I can to return the favor!

    #2
    That's a good suggestion for a mod. I'll check if that can be done in vB5/6.
    Buy me a coffeePayPal QR Code
    My Amazon Affiliate Link
    Fast vBulletin VPS Host:
    This site is hosted by IONOS

    Comment


      #3
      Snowhog, watch out for this mod. I'm in the process of creating it.
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link
      Fast vBulletin VPS Host:
      This site is hosted by IONOS

      Comment


      • Snowhog
        commented
        Editing a comment
        Outstanding! Thank you.

      #4
      Snowhog, here you go...

      If you're running a vBulletin 5 or vBulletin 6 forum and struggling with users creating multiple accounts using Gmail alias tricks, this plugin is for you. The Block Gmail Alias Tricks Mod detects and blocks registration attempts that use Gmail’s dot (.) and plus (+) email alias features, which are commonly exploited by
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link
      Fast vBulletin VPS Host:
      This site is hosted by IONOS

      Comment


        #5
        Thank you!
        The Linux Community has given me much. I do what I can to return the favor!

        Comment


          #6
          The MOD is preventing registrations when more than the specified number of periods are used in the email address, and I have Log Blocked Users to a CSV File setup, but when I test the MOD, while I do get the pop-up error message, the attempt isn't being logged (the file isn't created) and I don't see the entry in error.log either.

          Click image for larger version

Name:	Screen Shot 2025-09-22 at 10.08.39 AM.png
Views:	35
Size:	193.4 KB
ID:	33078

          Click image for larger version

Name:	Screen Shot 2025-09-22 at 10.06.21 AM.png
Views:	48
Size:	121.2 KB
ID:	33077

          Click image for larger version

Name:	Screen Shot 2025-09-22 at 10.07.21 AM.png
Views:	35
Size:	624.3 KB
ID:	33079

          What do I need to do?
          The Linux Community has given me much. I do what I can to return the favor!

          Comment


            #7
            You didn't see any entry in the error.log file that indicates the reason why the CSV file wasn't created? You should also see the blocked user information there along with the reason.
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment


              #8
              Originally posted by glennrocksvb View Post
              You should also see the blocked user information there along with the reason.
              Okay, you are correct. I just now grep'd the error.log file: grep TestingToManyDots error.log and it did find the data.

              This is the telling content of the entry:

              [Block Gmail Alias Tricks] Cannot write to log directory: /var/log/apache2 (directory does not exist or is not writable)

              Obviously the directory exists. It must therefore be a permissions issue?

              I am aware of your note in the MOD:

              NOTE: The specified directory must be readable, writable and executable (e.g., permissions set to 750 or 755) by the web server.​

              What specifically do I need to do to ensure that the MOD can write to the directory? Do the permissions on /var/log/apache2 need to be changed?
              The Linux Community has given me much. I do what I can to return the favor!

              Comment


                #9
                The apache error log directory is writable by root but not by Apache's user (e.g. www-data, apache, or nobody), which is what PHP runs as. It's not recommended to change permissions on /var/log/apache2 as it is a security risk. I recommend creating a new directory dedicated to the mod and set its permissions with the Apache user.

                To find the Apache user, run this command:

                Code:
                ps aux | grep apache
                Then create a custom directory. See sample below:
                Code:
                sudo mkdir /var/log/apache2/blockedregistrations
                sudo chown www-data:www-data /var/log/apache2/blockedregistrations
                chmod 755 /var/log/apache2/blockedregistrations
                Then set the error log path in the mod to /var/log/apache2/blockedregistrations/blockedusers
                Buy me a coffeePayPal QR Code
                My Amazon Affiliate Link
                Fast vBulletin VPS Host:
                This site is hosted by IONOS

                Comment


                  #10
                  Okay. Thank you.
                  The Linux Community has given me much. I do what I can to return the favor!

                  Comment


                    #11
                    You're welcome! Does it work now?
                    Buy me a coffeePayPal QR Code
                    My Amazon Affiliate Link
                    Fast vBulletin VPS Host:
                    This site is hosted by IONOS

                    Comment


                      #12
                      I've done what you said to do, exactly. I attempted to register a new user with too many periods in the email address. The MOD produced the pop-up, but again, the file isn't being created, and the data was logged to error.log.

                      Click image for larger version

Name:	Screen Shot 2025-09-22 at 3.20.36 PM.png
Views:	42
Size:	111.2 KB
ID:	33087
                      Note that the path is still listed as /var/log/apache2/blockedregistrations and not what is specified in Log Blocked Users to a CSV File which is /var/log/apache2/blockedregistrations/blockedregistrations

                      The created directory:

                      Code:
                      root@kfn1:/var/log/apache2# dir
                      ls: cannot access '.*/': No such file or directory
                      drwxr-xr-x 2 www-data www-data 4096 Sep 22 19:46 blockedregistrations/
                      
                      ​
                      So what am I doing wrong?
                      The Linux Community has given me much. I do what I can to return the favor!

                      Comment


                        #13
                        The red part in the path /var/log/apache2/blockedregistrations/blockedregistrations you set is the directory and the remaining part is the filename part of the CSV file. So the path mentioned in the log entry is correct. Are you sure there is a directory exactly named "blockedregistrations" in /var/log/apache2?
                        Buy me a coffeePayPal QR Code
                        My Amazon Affiliate Link
                        Fast vBulletin VPS Host:
                        This site is hosted by IONOS

                        Comment


                          #14
                          Originally posted by glennrocksvb View Post
                          So the path mentioned in the log entry is correct.
                          Okay. Makes sense. So is the 'is not writable' pertinent? I did chmod the directory to 755.
                          The Linux Community has given me much. I do what I can to return the favor!

                          Comment


                            #15
                            I wonder why you have this output in the terminal?
                            Code:
                            ls: cannot access '.*/': No such file or directory
                            Is the dir command aliased to "ls -l .*/"?

                            Can you just run the "ls -l" command directly?
                            Buy me a coffeePayPal QR Code
                            My Amazon Affiliate Link
                            Fast vBulletin VPS Host:
                            This site is hosted by IONOS

                            Comment

                            Latest Posts

                            Collapse

                            Working...
                            X
                            Searching...Please wait.
                            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                            Please push the back button and reload the previous window.'
                            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                            Please push the back button and reload the previous window.'
                            An internal error has occurred and the module cannot be displayed.
                            There are no results that meet this criteria.
                            Search Result for "|||"