Jeremy Brown, Mobile & Web development

Official account of a web developer no one's heard of. Expect posts on Mobile, HTML5, CSS, SEO, social, jQuery, EECMS & crap music taste.
Based in Sydney Australia.
You can find me here --> twitter.com/jeremybrown
Questions welcome

Why someone would want to sign up to my mailing list with fake emails?

A customer asked "I don’t know if that’s a stupid question but I can’t think of any reason why someone would want to sign up to my mailing list with fake emails… Emails like 1354284@carsforcheap.biz "

The reason?
For every thousand times they do this it takes one guy who wonders what carsforcheap.biz is and visits the site.
They then spam a 10 million times on email and forums which returns 10,000 clicks for carsforcheap.biz
carsforcheap.biz is happy because they have never seen that much traffic and they pay about $100 for the service.

Customer: "I figured something like that but I’m not sure I understand - it’s not a forum, just a mailing list. Do the bots just fill out whatever forms they can find on the web regardless of what it’s for hoping to sign up to something where they get clicks?"

Me: They mostly use bots, but sadly I have heard of warehouses full of old desktops in places where people just fill in forms manually all day for a lousy pay. They also look at future opportunities and website vulnerabilities based on how the website accounts and website communications are handled.

The Descendents, this Saturday in Sydney!

No_sleep_til_sydney_timetable_

Classic ASP redirect mobile devices to a mobile folder

This is some Classic ASP written to redirect users on mobile devices to a mobile website 
You should be able to paste this in the first lines of your default.asp

<%
  DIM WhatDevice, MyDevice, MobileURL, MobilePath

' Website path to your mobile website is hosted

' Domain published for mobile users, bypasses redirect on detection
  MobileURL = "m.yourwebsite.com.au"

' Website for non mobile users
  WebsiteURL = "www.yourwebsite.com.au"
  MyDevices = Split("iphone, palm, palmos, palmsource, blackberry, nokia, phone, midp, mobi, pda, wap, java, nokia, hand, symbian, chtml, wml, ericsson, lg, audiovox, motorola, samsung, sanyo, sharp, telit, tsm, mobile, mini, windows ce, smartphone, 240x320, 320x320, mobileexplorer, j2me, sgh, portable, sprint, vodafone, docomo, kddi, softbank, pdxgw, j-phone, astel, minimo, plucker, netfront, xiino, mot-v, mot-e, portalmmm, sagem, sie-s, sie-m, android, ipod", ", ")

' Find out about the URL, including any query string stuff you want to pass on
  DirPages = Request.ServerVariables("SCRIPT_NAME")
  DirPagesQueryString = Request.ServerVariables("QUERY_STRING")
  myDomain = Request.ServerVariables("SERVER_NAME")

' Redirect all domains to WebsiteURL including subdomains. 
' This is for SEO and prevents duplicate indexing
  IF myDomain <> WebsiteURL THEN
   DirPath = DirPages & "?" & DirPagesQueryString
   IF LCase(DirPath) = "/default.asp?" THEN DirPath = ""
Redirectto = "http://" & WebsiteURL & DirPath
  END IF

' Redirection for mobile site begins
   IF DirPagesQueryString = "" THEN
WhatDevice = Request.ServerVariables("HTTP_USER_AGENT")
for i=0 to UBOUND(MyDevices)
 IF InStr(LCase(WhatDevice),LCase(MyDevices(i))) <> 0 THEN
Redirectto = MobilePath
 END IF
next

' Don't redirect iPads to the mobile site as they are full resolution
IF InStr(LCase(WhatDevice),"ipad") > 0 THEN Redirectto = WebsiteURL & "?Fullsite=true"
 END IF
%>

' Perform the redirect, I'd advise to print Redirectto first to confirm you haven't created a looping redirect 
  IF Redirectto <> "" THEN
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location", Redirectto
  END IF

%>