PDA

View Full Version : FTP Restriction by IP address



jpal20002001
11-09-2008, 09:58 AM
I have created three FTP accounts so three users can access a specific directory. However, what i don't want, is for those directories to be accessed by any other ip address, other than where the three users reside. Therefore, I have attempted to use the following, but it doesn't work.

I created a file named ".ftpaccess" and placed the following code inside.
I also placed this file in the directory that will be accessed

user1 = user1@mydomain.com
user2 = user2@mydomain.com
user3 = user3@mydomain.com

directory -> "public_ftp/users"
file location -> "public_ftp/users/.ftpaccess"

----The code inside the file starts below this line----
#
# Simple .ftpaccess file to control which IPs
# can access this directory structure
#
<Limit>
Allow 212.32.5.0
Allow 158.152.0.0
Allow 197.152.0.0
DenyAll
</Limit>
#
# end
#
----The code inside the file ends at the line above here----

Am i doing anything wrong, or is this not possible??? If anyone has any other suggestions, please feel free to suggest ideas.