Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8729387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:49:27+00:00 2026-06-13T08:49:27+00:00

I have a bot that is trying to access my site by entering what

  • 0

I have a bot that is trying to access my site by entering what appear to be keywords or passcodes. The entries come from dozens of different IPs and locations, so I can’t block via IP, location, or referrer.

The bot attempts to visit a page like this:

http://www.website.com/valid-page/?kwd=du2c3m

Always in this format and the ‘valid-page’ is always the same page. I get as many as 400 of these attempts a day, and have been getting them for over a week.

My question is, how can I use .htaccess to block these attempts? I’m sure it’s relatively straightforward – like blocking all ‘?kwd’ urls or blocking all subdirectories of the ‘valid-page’

Any thoughts? I really appreciate it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:49:28+00:00Added an answer on June 13, 2026 at 8:49 am

    What’s unique that these bots are doing that normal humans browsing your site aren’t doing? If it’s a matter of a user-agent (should be in your access logs), then block that user-agent:

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} the_bot_useragent
    RewriteRule ^ - [L,F]
    

    If it’s a matter of the weird query string, then block that query string:

    RewriteEngine On
    RewriteCond %{QUERY_STRING} kwd=
    RewriteRule ^ - [L,F]
    

    If it’s a matter of all the bots originating from an IP or a subnet:

    Deny 123.45.67
    # or
    Deny 123.123.123.123
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if (user.Access == (UserType)Enum.Parse(typeof(UserType), str, true)) I have a channel bot that takes commands
I have a python IRC bot that I'm starting to work on to practice
I am trying to make my own Jabber bot but i have run into
i been trying to code an IRC bot, while i have succeed. I am
As part of my dissertation thesis I have constructed a bot that crawls the
I am trying to write a Python-based Web Bot that can read and interpret
I have been figuring about and trying to make my IRC bot send private
I have text bot i want that when i enter any value like 3
I am trying to create a bot that checks to see if a particular
I'm trying to create some kind of bot in C# that joins a webbrowser

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.