• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
(07-05-2019, 05: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, 12:26 PM)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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.