Allow only certain IP address or range to add/modify/delete files

  • Answered
We have a Joomla 2.5x site, I would like only admins from a certain IP block to be able to add/change/delete files on the webserver.. meaning I don't care not only about Joomla files but even having access to the root folder and not allowing file uploads unless from one particular ip address..

is this possible?
Hello, You can certainly restrict access to any folder you want. Bear in mind this is 'all or nothing' access. Simply place an htaccess file in the folder you want to restrict and enter code similar to the following:
Order Deny,Allow
Deny from all
Allow from
Simply add more 'Allow' statements for more IP addresses/ranges to be granted access. Kindest Regards, Scott M