[color=#242729][font=Arial,]I am using yii2 basic application template and developed an application. [/font][/color][color=#242729][font=Arial,]I am using VPS server for hosting this application on a domain on Host gator.[/font][/color]
[color=#242729][font=Arial,]
[/font][/color]
[font=Arial,]Now I want that only office users should access this application i.e, (while accessing this application using domain, .htaccess file should check if the IP accessing this domain is allowed to have access. If yes, then that IP should be able to have access, else that IP should see a message containing Access Denied).[/font]
[font=Arial,]If we do this then how to specify IP addresses in .htaccess file. Do we need to specify the static IP addresses of the employees in our organization?[/font]
[font=Arial,]If we write the foll code in .htaccess,[/font]
[font=Arial,]order allow,deny[/font]
[font=Arial,]allow 192.168.1.3[/font]
[font=Arial,]deny from all[/font]
[font=Arial,]
[/font]
[font=Arial,]Here, which IP address to be specified? Do we need to specify the Public IP or routers Private IP or static IP?[/font]
[font=Arial,][/font]
[font=Arial,]How to accomplish this?[/font]