Best Way To Scan a Site for E-Mail

Discussion in 'Web Design & Coding' started by kcnychief, Mar 6, 2007.

  1. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    One of the sites I did recently, apparently still has my e-mail address embedded somewhere which after a little digging I can't find. Are there any programs that can scan entire sites, looking for forms or other links that may lead to e-mail addresses? I want to fix and point to the right direction, but I can't find :p
     
  2. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
  3. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    As NetRyder mentioned something like this would work on a *nix machine

    Code:
    webhost$ cd /path/to/the/website
    webhost$ grep -rin -E "[a-zA-Z0-9._%-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,4}" *
    That will do a recursive (goes down the dir tree) and case insensitive search though the regexp is already case insensitive and will also tell you what line of the file the regex matches. The * at the end tells it to search all files and folders in the current directory.
     
    Last edited: Mar 7, 2007
  4. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    Nah, I have a Microsoft Server :)

    The site is relatively small, I guess I could do a CTRL + F through the code was just trying to be lazy :eek:

    Thanks though guys, I'll post back this weekend when I give it a shot.
     
  5. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City