How to Protect Your Website from Bad Bots and Malicious AI Agents
Last week we covered why your website should be usable by helpful AI agents. The flip side: the same openness can attract spam, fake bookings, scrapers, and attackers. You don't have to choose between being open and being safe. You need a few layers of protection.
Good agents versus bad actors
Not all automated traffic is the same. A customer's assistant checking your hours and booking a slot is good traffic. A script that submits thousands of fake forms, scrapes your staff emails, or hammers your login page is bad traffic. The goal is to make the first easy and the second expensive and pointless.
Start with what you don't publish
- Keep private data off public pages. Anything on a public page can be read by any bot. Client, patient, and case information belongs behind a login.
- Limit staff contact details. Use a contact form or a shared inbox instead of listing every personal email address, which scrapers collect for spam and phishing.
- Don't rely on
robots.txtfor security. It's a polite request that good crawlers follow. Bad actors ignore it, and it can even point them to pages you'd rather not highlight.
Protect your forms and booking
- Verify bookings. Send a confirmation by text or email with a link the customer must tap. This stops most fake appointments, and it's also a good safeguard when an AI agent booked on someone's behalf.
- Rate-limit. Cap how many submissions or bookings one visitor can make in a short window.
- Add invisible spam checks. A hidden “honeypot” field that humans never see, a minimum time-to-submit, and server-side validation catch many bots without annoying real customers.
- Use a bot challenge only where needed. Services like Cloudflare Turnstile or reCAPTCHA can protect high-risk forms. Use them sparingly so you don't block legitimate customers or their assistants.
- Consider a deposit or card hold for high-value or hard-to-fill appointment slots that are attractive targets for no-show abuse.
Lock down logins
- Turn on multi-factor authentication for your client or patient portal and for every staff and admin account.
- Lock out repeated failed attempts and alert on unusual login activity.
- Use unique, strong passwords with a password manager, and remove accounts for people who've left.
- Keep software updated. Website platforms, plugins, and booking tools are common entry points when they fall behind on updates.
Add a protective layer in front of your site
A web application firewall (WAF) or CDN service sits between your visitors and your site. It can block known bad traffic, absorb floods of requests, and apply rate limits for you. Many hosts and services such as Cloudflare offer a free or low-cost tier that's enough for most small businesses. It's one of the highest-value changes you can make.
If your site has its own AI chatbot
An AI assistant on your site can be tricked by cleverly worded messages, a trick called prompt injection. Protect yourself by design rather than hoping it behaves:
- Give it access only to public information. Never connect it to private records.
- Don't let it take irreversible actions (refunds, deletions, promises about legal or medical outcomes) without a human approving.
- Log conversations and review them regularly.
The same caution applies in reverse: content on any website, including text a visitor submits through your forms, can contain instructions aimed at an AI that reads it. If you use an AI tool to read incoming messages, treat that content as untrusted data, not as commands.
Watch and respond
- Check your form submissions and booking logs weekly for spikes, odd patterns, or obviously fake entries.
- Back up your site and know how to restore it.
- Have a simple plan: who do you call if your site goes down or is defaced?
Open and safe at the same time
Clear information, booking with confirmation, rate limits, strong logins, and a protective layer in front of your site let helpful agents in while keeping abusers frustrated. For the open half of the equation, see Is Your Website AI-Ready?
Want a second pair of eyes on your site?
AltaLumen Solutions can review how your forms, booking, and logins hold up and set up sensible protections without making things harder for real customers. Book a free consultation.
Get a Free ConsultationKeep reading: how to use AI for your business, or browse all articles.