Browse > Home / Archive by category 'Code'

| Subscribe via RSS

Stop people hotlinking your pics

December 22nd, 2009 | No Comments | Posted in Code, Technical, Websites, Wordpress

Don’t you just hate it when you see your photos or hand crafted graphics popping up on other people’s sites?

Well you can’t do much about people copying those kind of files and hosting them on their own site, but we certainly can stop them just lifting everything and using things that are hosted on your server – or ‘hotlinking’ as it’s called. More »

Tags: , , , ,

History.back() – Problems With Chrome and Safari

July 6th, 2009 | 9 Comments | Posted in Code, Technical, Websites

Had a bit of an issue today with our old friend history.back(). This works fine in IE + FF:

<a href=”#” onclick=”history.back();”>Back</a>

But doesn’t seem to want to play in Chrome or Safari. So I tried to tidy up the code and be a little more strict:

<a href=”#” onclick=”window.history.back(-1);”>Back</a>

But still noy joy. In the end I went for this: More »

Tags: , , ,