Cartpauj & iComNow

Wednesday, February 13, 2013

How to Block Unwanted Bots from Your Website with .htaccess (thesitewizard.com)

How to Block Unwanted Bots from Your Website with .htaccess (thesitewizard.com): "Before you can block a bot, you will need to know at least one of two things: the IP address where the bot is coming from or the "User Agent string" that the bot is using. The easiest way to find this is to look into your raw web log.

Download your web log from your web host, uncompress it using an archiver, and open it in an ASCII text editor. You'll probably need to use a better editor than Notepad if your logs are large. If you have a search and replace utility like those listed on the Free Text Search and Replace Utilities page, you can use those instead of the editor. Search through the file for the bot you want to block."

'via Blog this'

No comments:

Post a Comment