Protecting Your LAMP Site with a Robots.txt Honeypot | Linux Today

Protecting Your LAMP Site with a Robots.txt Honeypot

Written By
Web Webster
Web Webster
Nov 27, 2008

[ Thanks to Justin
Klein Keane
for this link. ]

“For instance, if your site has an administrative
interface at /admin you might want to list a couple hundred
non-existent sub-directories and sift /admin into the list near the
middle or end. This would provide frustrating for an attacker
looking through the robots.txt entries by hand. If an attacker was
using an automated tool, however, they likely won’t be slowed down
by false entries in the robots.txt file.

“The system I’m describing can be implemented in a number of
ways. The basic idea is the same though. You fill your robots.txt
file with numerous false entries. Each of these false entries leads
to a server response that triggers a blacklisting of the offending
IP address. This means that real subdirectories and files can still
safely be embedded in the robots.txt, but the time to search each
entry becomes exhaustive for an attacker.

“In principle the system functions in a fairly straightforward
manner. Assume we have an administrative login page at /admin that
we want to hide from attackers. We create a robots.txt file that
contains the following entries:”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.