| ||||||||||||
![]() |
| Notices |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
(#1)
|
| Senior Member Posts: 5,245 Join Date: Jun 2005 Location: Cumbria, UK | Limit Windows Application Login to Specific IPs -
01-02-2008, 02:52 PM
Open /winapp/index.php and right after the copyright information, add the following :- Code: $listofauthorizedips = array('222.222.222.222','222.222.222.222');
if (!in_array($_SERVER['REMOTE_ADDR'], $listofauthorizedips)) {
die('You are not authorized to use the windows application.');
}
Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#2)
|
(#3)
|
(#4)
|
| Developer Posts: 308 Join Date: Dec 2007 Location: Idaho |
09-07-2008, 09:23 PM
It would be far more appropriate to implement something like this in a .htaccess rule, which will correctly handle resolving rDNS, alternate network identity encodings, alternate IP address encodings and so forth, rather than to alter the application. We do not recommend this modification. -------------------------------------------------------------------
|
| | |
(#5)
|
| Developer Posts: 308 Join Date: Dec 2007 Location: Idaho |
09-07-2008, 09:49 PM
Ryan says I should clarify why I'm asking customers to do things in a different way than the application does. 1) We can't put stuff in .htaccess for several reasons. First off, some webservers don't support .htaccess, or have it turned off, or limit how it can be used, or etc. We also can't be certain that any given webserver is using them, and it's not really acceptable for our code to make security assumptions about driving webservers. End users know what webserver they're using and how it's configured, and as such do not have this limitation. 2) We don't want people modding their desks if it's not necessary, especially for security stuff, for several reasons. Besides that we can't check the work, it also means that every time the desk is updated, the change goes away. Especially for security related topics, things should not need to be remembered. 3) It's a lot easier for an end user to check if .htaccess is correct. 4) .htaccess will be a lot faster. Craig's fix is generally correct, but users can't do the same things that staff do, particularly because upgrading wipes out changes you make that aren't in the main tree. We continue to recommend a .htaccess driven solution. -------------------------------------------------------------------
|
| | |
(#7)
|
| Senior Member Posts: 5,245 Join Date: Jun 2005 Location: Cumbria, UK |
28-07-2008, 08:48 PM
htaccess way is as follows. Code: Order Deny,Allow Deny From All Allow From 1.2.3.4 Allow From 1.2.3.4 Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#8)
|
| Developer Posts: 308 Join Date: Dec 2007 Location: Idaho |
28-07-2008, 09:11 PM
Craig posted a correct answer, but it looks like vBulletin may have mangled it slightly. Here's a manpage. -------------------------------------------------------------------
|
| | |
(#9)
|
(#10)
|
| Senior Member Posts: 5,245 Join Date: Jun 2005 Location: Cumbria, UK |
29-07-2008, 09:29 AM
Your welcome. Glad I could be of help. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
![]() |
| Tags |
| application, ips, limit, specific, windows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting up e-mail parsing using POP3 (or IMAP) on Windows 2003 Server | bardfor | E-mail Piping Issues | 6 | 12-08-2008 04:00 AM |
| Windows update KB944533 causes LiveResponse application crash | Jamie Edwards | News and Announcements | 0 | 13-02-2008 11:17 PM |
| Limit staff from connecting using the Desktop Application | Thijs | LiveResponse Desktop Application | 12 | 01-02-2008 11:32 PM |
| Free Limit Windows Application Use to Specific Users | craigbrass | Modifications & Addon Releases | 0 | 01-02-2008 02:53 PM |