Posts Tagged ‘Web’

A Contact Page to Avoid Spam

There are too many website owners displaying their email address in the “name [at] tld [dot] com” format, or something like that. Whatever happened to the good old mailto link with the email address being displayed how it’s supposed to? I’ll tell you what happened — spam happened.

Many site owners are afraid of displaying their email address, as it should be displayed, on their site. Since spammers can use scripts to scan websites, the same way google does, to look for email addresses. I’ve been seeing more and more contact forms and weirdly formatted addresses to combat the issue, but there’s a better way.

The robots.txt file in the root of your website is where you control what these bots can do and what they can’t. So if you’ve got your contact info on a certain page, then don’t allow bots to view that page. Bingo.

Now, the robots.txt file isn’t a standard and there’s nothing that guarantees that spam bots will follow the rules, but we can take this a step further.

Read the rest of this entry ›

Published: January 31st, 2010 in Web | Tags: , ,

Extra Space under Image Links Fix

Have you ever had the problem of having a little extra space under images on your website? This has been driving me crazy since I started the FancyFlickr plugin and noticed a little extra space under all of the images on my site.

The problem is that by default the bottom of images are lined up with the baseline of the text — which means the bottom of most letters, but there is still that small space for the bottoms of letters like p and q.

By default vertical-align is set to baseline. All you have to do to fix the problem is set

a img { vertical-align: bottom; }

Viola! Problem solved.

Published: January 2nd, 2010 in Web | Tags: , , ,

Getting two domains on one IP

I recently had a request from someone on how to setup multiple domains on a single IP address. This is something that I’ve thought about doing before, but haven’t taken the time to stop and set it up. After getting sub-domains working, this was a breeze, as it’s the same process. I’m working on an Ubuntu server, so this may be a little different for you.

DNS

First setup the DNS, since it will probably take about an hour for that to update anyway, depending on the TTY that you use. If you’re setting this up and you want to make sure it works, you can edit your /etc/hosts file on a mac or linux machine. I think there’s a way to do this in windows as well, but I’m not sure of what file you’d be looking for. Just remember to delete that entry after you know it works.

To setup the DNS you first need to find the DNS control for the domain registrar that you use. In GoDaddy the option would be called Total DNS. Change the A record to the IP address you want to use as a server and you’re done.

Configuration

Now you need to create a new file in /etc/apache2/sites-available/. Call it whatever you want. I will call it NEWSITE.TLD. In this file you will create a new file that looks similar to this, only substituting information specific to your server:


NameVirtualHost *:80


	ServerAdmin you@your-domain.tld
	ServerName your-domain.tld

	DocumentRoot /var/www/your-root/

	
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	

	ErrorLog /var/log/apache2/error.log
	LogLevel warn
	CustomLog /var/log/apache/access.log combined
	ServerSignature On


Now we enable the site with:


sudo a2ensite /etc/apache2/sites-available/NEWSITE.TLD

Reload the apache configuration and you should be good to go.

Published: August 25th, 2009 in Tech, Web | Tags: , , , ,

Website Updates

I decided it was time to fix some stuff that’s been bugging me for awhile today and check some stuff off the list. So here’s some of the stuff I checked off:

That’s about all. There were a few things that were even smaller.

Update: One more thing worth mentioning was the contact page. I put a new email address on the contact page for another way to get in touch with me.

Update 2: I also added a plugin that looks for tweets with links to the site and puts them in the comments. I had to add my name to the black list on that one because it was getting the tinyurl links from the automatic tweets I have on a new post.

Published: April 4th, 2009 in Web | Tags: ,

Full Code Press

Full Code Press. On August 18th teams will compete to make a website in 24-hours for a non-profit organization. I think it’s kind of a cool idea. I’m going to look into it some more.

Published: May 20th, 2007 in Asides | Tags: