How to Create the Perferct .htaccess File
Or how to prevent unwanted scraping of your content. On a Web server, the htaccess file is sort of like a keyless entry system for visitors. With the right credentials, you walk right in. Wrong creditinals, you’re left standing on the porch waiting for someone to answer the door. That’s not exactly a perfect analogy, but that’s sort of how it works. Good sites, like Google want to search your server for pages to index. Bad sites might want to summarily scrape your content for a spamblog. Using an htaccess file, you tell these visitors whether they can pay you a visit or whether they get kicked to the curb. While the scraping tools are constantly a moving target, JavaScript Kit provides something close to a perfect resource (for now) on building an htaccess file to defend your site by blocking bad bots and site rippers.
bots, htaccess, javascript, scraper, web scraper