Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134232

bcr8tive on "Help with appending to htaccess"

$
0
0

Hi,

I've tried to research how to do this properly but for fear of breaking my site with improper coding of htaccess - I could really use some experienced assistance with this question...

I have several bots, such as 'am az on aws' that just continue to return to my site, with an onslaught of different IP addresses, no matter how may ip's I block - I DO have a quality firewall installed and it does work, however, I can't spend day and night in it playing 'whack a mole' blocking these bots - and they're huge resource hogs.

I would like to edit htaccess to at least block several of these bad bots - but am unsure as to how it is supposed to be written correctly.

The CURRENT WP HTACCESS -

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

What I have researched needs to be added looks like the following:

order allow, deny

deny from _________.com

allow from all

But I need to know HOW to add this addendum correctly to the preexisting Wordpress htaccess document.

Could someone please advise?

Thank you.


Viewing all articles
Browse latest Browse all 134232

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>