FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Restricting access to a website
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Restricting access to a website [message #174820 is a reply to message #174817] Mon, 11 July 2011 23:24 Go to previous messageGo to previous message
Chuck Anderson is currently offline  Chuck Anderson
Messages: 63
Registered: September 2010
Karma:
Member
Jerry Stuckle wrote:
> On 7/11/2011 4:08 PM, Graham Hobbs wrote:
>> On Sun, 10 Jul 2011 22:21:41 -0400, Jerry Stuckle
>> <jstucklex(at)attglobal(dot)net> wrote:
>>
>>> On 7/10/2011 10:01 PM, Graham Hobbs wrote:
>>>> Hello,
>>>>
>>>> I 'very laboriously' coded my index.php (close to novice level), for
>>>> my website and it is up and running. It's not public yet and needs to
>>>> stay that way. I need to give the address to two people who will help
>>>> with my product's development .. but they could reveal the address
>>>> anywhere, inadvertently or otherwise.
>>>>
>>>> If, for example, my website is www .lahdedah. com, I want to allow
>>>> full access to these two people (and me:-)) .. others would get a
>>>> 'Sorry, not yet available' screen. I envision hard coding their home
>>>> address's into my index.php?? Am not interested in any additional
>>>> typing by these three.
>>>>
>>>> Hope I've been clear. Is this feasible, easy/hard/unusual?
>>>> Please, thanks
>>>> Graham
>>>
>>> There are any number of ways to do it, none of which require PHP or any
>>> other server-side language. Try alt.apache.configuration (assuming, of
>>> course, you're using Apache).
>>>
>>> Also, unless you are David Small of Small Expressions, you shouldn't be
>>> using his domain name in an example. Use www.example.com, which is
>>> reserved for just such a purpose.
>> ---
>> Jerry, folks, thanks,
>>
>> Will check into alt.apache.configuration and apologies about lahdedah,
>> didn't know about example.com.
>>
>> But I wasn't emphatic enough .. yes I would know their IP addresses so
>> CAN I hard code them in my index.php? Yes or no would do and a PHP
>> buzzword I might search on to get started .. I just prefer all my code
>> in one place.
>>
>> .. am definitely not interested in extra keying of passwords by my two
>> associates.
>>
>> Thanks,
>> Graham
>
> You definitely need alt.apache.configuration. No need to do anything
> to your php code.
>

If you know the IP addrs - simply compare them to the Php global
$SERVER['REMOTE_ADDR'].


--
*****************************
Chuck Anderson • Boulder, CO
http://cycletourist.com
Turn Off, Tune Out, Drop In
*****************************
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to implement AJAX to html
Next Topic: sending email
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 12:27:48 GMT 2024

Total time taken to generate the page: 0.04492 seconds