Block IP in Htaccess?

#1

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?

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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

0 Likes

#5

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

0 Likes

#6

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?

0 Likes

#7

I have a website on html if I place this code in the head of each page can I block a visitor in htaccess?

0 Likes

#8

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

2 Likes