Backlink Intelligence Competitive Link Analysis by MakeItYourRing

26Oct/090

Handling Domain Name User Input

Since the main purpose of this site was to really create a backlink analysis tools. The main user input is a domain name. And for the rest, the tool should take care of itself. Now having a text box as an input field can cause many problems in user input and currently that is the first step I have worked on and did this rather than concentrating on the contest entry oes tsetnoc.

So what I worked on is simply working on the user input and made sure these issues are taken care of. These are pretty basic, but still made sure I got them covered before I proceed with anything else.

  • Normalizing data - Some people may not enter domain names. Some might enter the http://, some may include a full URL with all the paths and files. So I made sure the script cleans up the input to either domain or subdomain.
  • Strip HTML code - Crackers, hackers, spammers will always try to inject code in the box, so I made sure all HTML code get's stripped out before anything bad may happen.
  • Space and Dot - I do not do a major check of all invalid characters right away, to save on processing time but I at least check these two basic things:
    • Space - There should be no space in the domain name. (After a trim command has already been done)
    • Dot - All domains have at least 1 dot, so a dot should be present.
  • IP Address - All domains resolve to a valid IP address. This is just my way to check if this is a valid domain name. I run this instead of checking invalid characters. So I handle both problems with 1 test.

Now that this is done, maybe I can work on the SEO contest oes tsetnoc, but what I will do next is integrate all domain data in a MySQL database so all data is archived and can be sorted in any way or used for further processing and can export data later on. So next will be all data gathering.

Share and Enjoy:
  • Print
  • Ping.fm
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Live
  • MSN Reporter
  • Technorati
  • StumbleUpon
  • Propeller
  • Reddit
  • NewsVine
Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.