MyBB Community Forums

Full Version: .htaccess
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to add a IP block by countries:
#COUNTRY_BLOCK_START
<Limit GET HEAD POST>
order allow,deny
deny from XX.XX.XX.XX/XX
allow from all
</Limit>
#COUNTRY_BLOCK_END

Where I have to put the .htaccess file? Into the "public_html" or into the "forums" folder?
htaccess is inherited, so if put it at the level you want GEOIP protection to start and it will apply to all subfolders unless overridden in htaccess files in subfolders
Ok. I'll put it into the publi_html to protect all my forums.
I can add this code at the end of the .htaccess file?
Quote:I can add this code at the end of the .htaccess file?

You can put it anywhere in .htaccess
Ok. Thanks.