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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -