Block IP in Htaccess?

Can I Block IP in Htaccess? Vit Cloudflare changes the ip address? If I know the user’s IP address, can I add it to the blacklist in htaccess?

You can block visitor IP address only if your web server is configured to Restore Visitor IP addresses:
https://support.cloudflare.com/hc/en-us/sections/200805497-Restoring-Visitor-IPs

Excuse me in Cloudflare? or do I need on my hosting?

Where should I do this? I do not have access to hosting only Htaccess

It’s hard for me to understand all this, because I work through a translator. I’m from Russia

https://support.cloudflare.com/hc/en-us/articles/200170916-Why-should-I-install-mod-Cloudflare- Will this help me? And where to get this mod?

I have a website on html if I place this code in the head of each page can I block a visitor in htaccess?
https://support.cloudflare.com/hc/en-us/articles/200170876-I-can-t-install-mod-Cloudflare-and-there-s-no-plugin-to-restore-original-visitor-IP-What-should-I-do-

It is easier to block visitor IP addresses using Firewall Rules:

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.