John Kavanagh
Indie WebDeveloper
Client-side and Front-end Development. Expert in cross-browser compatibilities, beautiful layouts, accessibility and advanced CSS/XHTML

Detect Visitors By Referring Address

04.03.2009 1

detect website visitors by referral address
Aside from detecting visitors by their IP address, which I have covered in a previous post, you may also want to be able to detect what the referring website that you visitor has come from is, and react accordingly.

Read more

Stopping Google from Caching your Website

15.02.2009 0

Don’t get me wrong, I’m sure there is a legitimate and useful reason for Google Cache but when you have a gaggle of brain-dead idiots trying to circumnavigate their blocked status by using Google’s (out of date) cache and then making threats based on these, the shine is soon taken off what is otherwise an inoffensive and occasionally useful section of Google’s services.

Read more

Blocking an IP address with PHP

15.02.2009 2

There may be many reasons why you would want to block a specific IP address from access your WordPress site, or any PHP-based website (there are methods to block IP addresses in all language-based websites but in WordPress you’re using PHP, and that’s what we’re focusing on here). The main reason you would want to block access, particularly with WordPress, is to stop comment spam, or the uninvited access of an ex-employer and/or general troublemaker. If it’s your website, then it’s your appanage to allow or block people from accessing it as you see fit.

Read more