Posts

Showing posts with the label Apps Development

Redirect or Point your Google App Engine to your naked domain

Image
Before I found this straight-forward solution, I had been trouble-shooting my Google App Engine for 3 weeks because I cannot point my application site to my naked domain ( http://vargas.im ). You have a naked domain problem when your website cannot work without a www in front. So if you have mydomain.com as your domain, it can only be opened only by entering www.mydomain.com . When someone enters only mydomain.com (notice the missing www in front) the error is shown. Although there are a lot of articles on the web on how to fix this, these guides are not applicable for Google Apps anymore.  Google has restricted this feature and the only way to do it was to put an A record in your DNS settings, which needs an IP address and not an alias. Google cannot give us a specific IP address because they host their apps in different servers and it is difficult to maintain these service by hard-coded IP address. Fortunately, I found an IP address that you can assign to yo

How to obfuscate, cloak or hide your email address from spammers in your website

Image
Whenever you publish your email address on your website, it will be vulnerable to email harvesters and spammers.  What they usually do is they use their own software that "crawls" over millions of websites and search and scan the all the texts and look for those words containing the email patterns. A a typical HTML code for an email link would look like this:   <a href= "mailto:myEmail@myDomain.com" > myEmail@myDomain.com </a>     As a good practice, we have to make sure that email addresses that appear on your site are obfuscated or cloaked.  In this way, only people can read it but not by bots and other web-crawlers. Email addresses can be made un-readable to these software by not putting the email address directly as plain text.  We can use the power of JavaScript to compose your email address. I'll show you how we can do this by following these steps: Step 1:    Create an anchor element and assign an ID to it. In this e