Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2557

Re: Restricting access to a website

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Restricting access to a website
Date 2011-07-14 00:14 -0400
Organization A noiseless patient Spider
Message-ID <ivlqfe$t6e$3@dont-email.me> (permalink)
References (4 earlier) <ivg0n6$to2$1@dont-email.me> <ivg51v$ktn$1@dont-email.me> <4e1dee63$0$23963$e4fe514c@news2.news.xs4all.nl> <8rsr17lirl4sssjnh1m3ms6d8ugl6imrr5@mfesser.de> <4e1dfc22$0$23922$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


On 7/13/2011 4:12 PM, Luuk wrote:
> On 13-07-2011 21:49, Michael Fesser wrote:
>> .oO(Luuk)
>>
>>> On 12-07-2011 02:38, Jerry Stuckle wrote:
>>>>
>>>> No need to even go to that trouble.  It can all be done in the Apache
>>>> configuration with no changes to the web pages at all.
>>>
>>> Jerry,
>>> Can you explain the REAL benefits of doing this in apache,
>>> despite the fact that this is a PHP-newsgroup?,
>>
>> In this case, given the fact that limiting access can be based on static
>> IPs, it would be easier to implement and more efficient to do it on the
>> Apache level.
>>
>>> And the real drawbacks from changing a bit to his own php-code just for
>>> this case?
>>
>> IMHO it mostly depends on the way his scripts are written. In case of a
>> front controller, i.e. a single entry point to the website, there's not
>> much of a difference to the Apache way, let aside performance. But if
>> the website consists of individual scripts, then it might be necessary
>> to add the same authentication code to a whole bunch of pages.
>>
>> Then there also might be things like image directories. If you want to
>> protect them, you either add some lines to an .htaccess file or have to
>> deliver all the images by a script, which makes things more complicated.
>>
>> Micha
>
> I know, but i wanted Jerry 'i am not a consultant-guy' to explain that
> to us...
>
> He only sends people to other newsgroups, because he does not know a
> better answer. He is (almost) never giving the answer to the question
> WHY the other newsgroup is a better place to ask....
>

Wrong.  I am a consultant, and have been for over 20 years.  And I send 
people to other newsgroups when it is appropriate - as in this case.

I do also answer a lot of PHP questions in this newsgroup - as a Google 
search will easily show.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Restricting access to a website Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-10 22:01 -0400
  Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-10 22:21 -0400
    Re: Restricting access to a website richard <member@newsguy.com> - 2011-07-10 22:49 -0400
      Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-11 06:38 -0400
    Re: Restricting access to a website Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-11 16:08 -0400
      Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-11 17:29 -0400
        Re: Restricting access to a website Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-11 18:21 -0400
          Re: Restricting access to a website Michael Fesser <netizen@gmx.de> - 2011-07-12 16:27 +0200
            Re: Restricting access to a website Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-12 11:23 -0400
            Re: Restricting access to a website Chuck Anderson <cycletourist@invalid.invalid> - 2011-07-12 10:33 -0600
              Re: Restricting access to a website Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-12 13:04 -0400
              Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-12 15:13 -0400
                Re: Restricting access to a website Chuck Anderson <cycletourist@invalid.invalid> - 2011-07-12 15:19 -0600
                Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-12 19:35 -0400
        Re: Restricting access to a website Chuck Anderson <cycletourist@invalid.invalid> - 2011-07-11 17:24 -0600
          Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-11 20:38 -0400
            Re: Restricting access to a website Luuk <Luuk@invalid.lan> - 2011-07-13 21:13 +0200
              Re: Restricting access to a website The Natural Philosopher <tnp@invalid.invalid> - 2011-07-13 20:43 +0100
                Re: Restricting access to a website Luuk <Luuk@invalid.lan> - 2011-07-13 21:53 +0200
                Re: Restricting access to a website The Natural Philosopher <tnp@invalid.invalid> - 2011-07-14 00:17 +0100
                Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-14 00:12 -0400
                Re: Restricting access to a website Michael Fesser <netizen@gmx.de> - 2011-07-13 21:56 +0200
                Re: Restricting access to a website The Natural Philosopher <tnp@invalid.invalid> - 2011-07-14 00:53 +0100
              Re: Restricting access to a website Michael Fesser <netizen@gmx.de> - 2011-07-13 21:49 +0200
                Re: Restricting access to a website Luuk <Luuk@invalid.lan> - 2011-07-13 22:12 +0200
                Re: Restricting access to a website Michael Fesser <netizen@gmx.de> - 2011-07-14 00:13 +0200
                Re: Restricting access to a website The Natural Philosopher <tnp@invalid.invalid> - 2011-07-14 00:54 +0100
                Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-14 00:14 -0400
              Re: Restricting access to a website Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-14 00:09 -0400
      Re: Restricting access to a website The Natural Philosopher <tnp@invalid.invalid> - 2011-07-12 00:43 +0100
      Re: Restricting access to a website Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-13 14:44 -0400
        Re: Restricting access to a website Graham Hobbs <ghobbs@cdpwise.net> - 2011-07-13 21:05 -0400
  Re: Restricting access to a website The Natural Philosopher <tnp@invalid.invalid> - 2011-07-11 08:17 +0100
  Re: Restricting access to a website Man-wai Chang <toylet.toylet@gmail.com> - 2011-07-13 00:32 +0800
  Re: Restricting access to a website Man-wai Chang <toylet.toylet@gmail.com> - 2011-07-13 00:34 +0800
  Re: Restricting access to a website Bill B <me@privacy.net> - 2011-07-14 08:55 -0400

csiph-web