Jump to content

IP whitelist/access list help?


Letterbomb05

Recommended Posts

Hi,

 

I'm looking to write a script that would limit access to certain computers or such using an IP whitelist or access list, or at least something along those lines. However, I am aware that IP addresses for most people are always changing, which would be a bit of a problem. Has anyone written one of these before or have knowledge on how this can be achieved? I'm not asking anyone to write one for me, just guidance on how to go about creating it :)

 

Cheers.

Link to comment
https://forums.phpfreaks.com/topic/202073-ip-whitelistaccess-list-help/
Share on other sites

Would it be better served to use .htaccess to password-protect the directory?  That way you'd be allowing access regardless of the IP address.

 

Other than having some sort of username/password setup, either in the Apache server or something you build in PHP, I'm not sure there's really a way to restrict access without knowing a user's IP address.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.