Welcome Guest, Not a member yet? Register   Sign In
how to open a login page only for particular ip's?
#1

I want to open a login page only for authenticated(ipaddress) users in codeigniter.
Reply
#2

1) create method to get the user's ip when they enter the login page.
2) You would need to create an array list of these ip's and save them to the database.
3) on start up you need to get the list of ip's from the database and save them to an array list.
4) Write a method to check the list against the users ip when they come to the login page.

Just a rough thought on this can not waste my time on things you should know.

You should search the internet for computer problem solving!
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 07-06-2019, 02:35 AM by kvanaraj.)

(07-05-2019, 04:26 AM)InsiteFX Wrote: 1) create method to get the user's ip when they enter the login page.
2) You would need to create an array list of these ip's and save them to the database.
3) on start up you need to get the list of ip's from the database and save them to an array list.
4) Write a method to check the list against the users ip when they come to the login page.

Just a rough thought on this can not waste my time on things you should know.

You should search the internet for computer problem solving!

thanks for giving idea. i am also having that idea. If any shortcut or some coding to be useful for me . thats why.
No problem. I can able to do it.
Reply
#4

There is another more rigid way to make the so-called "white list"
in the file .htaccess or httpd.conf add the following lines:

Code:
Order Deny,Allow 
    Deny from all 
    Allow from 192.168.0.1, xxx.xxx.x.x
Reply
#5

(07-06-2019, 11:26 AM)Digital_Wolf Wrote: There is another more rigid way to make the so-called "white list"
in the file .htaccess or httpd.conf add the following lines:

Code:
Order Deny,Allow 
    Deny from all 
    Allow from 192.168.0.1, xxx.xxx.x.x
But it doesn't allow another application.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB