How to ban by IP or domain from htaccess

I already discussed the issue of restrict access in depth a few months ago, but I thought it would be interesting to have this information in particular because there are more and more situations in which we need to avoid any visitor, or RSS feed thief, access our site created with WordPress.

Edit the file .htaccess and add these lines, modified according to your need, logically:

IP xx.xx .xxx.xxx is what you have to modify. You can also add as many lines deny from xx.xx.xxx.xxx as you need.

Of course, as before, replace domain_a_banear with the domain in question and you can add as many lines of type RewriteCond% {HTTP_REFERER} domain_a_banear .com [NC] as needed.
 banned "title =" banned "width =" 500 "height =" 500 "class =" aligncenter size-full wp- image-5492 "srcset =" http://bootstrapx.com/wp-content/uploads/2018/06/baneado.jpg 500w, https://ayudawp.com/wp-content/uploads/2009/07/baneado- 150x150.jpg 150w "sizes =" (max-width: 500px) 100vw, 500px "/> </a> </p>
<p> And with these simple tricks you can get rid of undesirables, give them a few inches of your nose. tell it in the comments, we will all be grateful. </p>
</pre>
	</div><!-- .entry-content -->

	<footer class= modeerPosted on Categories Avanzado, Banear, htaccess, IP, Programación, RewriteCond, RewriteEngine, RewriteRule, Seguridad, Tutoriales / Trucos, WordPress.orgLeave a comment on How to ban by IP or domain from htaccess

Ban comments by IP using .htaccess • WordPress Help

We use third party cookies with services, also guarantors of your privacy, that analyze your browsing uses so that we can improve the contents, if you are already subscribed to the newsletter and the shared elements in social networks and the comments form. [19659002] 1P_JAR, APISID, CONSENT, HPSID, NID, SAPISID, SID, SIDCC, SSID, disqus_unique, disqusauth

disqus_unique, disqusauth

1P_JAR, APISID, CONSENT, HPSID, NID, SAPISID, SID, SIDCC, SSID

]