Use .htninja config file to block access by username
-
Great product. Love the versatility of the WAF.
I don’t want to introduce undue comparisons here, but with Wordfence I can block site access per specific usernames (through their GUI). Can I also do this with NWAF?
Writing rules to block IPs in .htninja is child’s play, but can I block usernames? Can you set me on the right path, please?
A simplified example would be:If ( $_SERVER[ "username_var" ] === 'joe_snuffy' ) {
return 'BLOCK';
}I’m using NinjaFirewall (WP+) 4.7.5, WP 6.8.2, PHP 8.3.23
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.