php - How do i restrict a user accessing my site other than office which has got many branches -
i have site need restrict users downloading data when accessed outside office. office may 1 or more. have setting cookie in mind. not sure if safer method. computer cannot identified static ip. there other method?
you can use .htaccess rule , add office multiple ip
for example.
rewritecond %{remote_host} !^127\.100\.110\.175 rewritecond %{remote_host} !^127\.106\.2\.36 rewriterule $ http://www.redirectdomain.net [r=301,l]
Comments
Post a Comment