yes. you can edit admin/model/access.py and replace this:

f request.env.http_x_forwarded_for or request.is_https:
    session.secure()
elif not request.is_local and not DEMO_MODE:
    raise HTTP(200, T('Admin is disabled because insecure channel'))

with:

f request.env.http_x_forwarded_for or request.is_https:
    session.secure()
elif not request.is_local and not DEMO_MODE and not request.client!='<your 
IP adress>':
    raise HTTP(200, T('Admin is disabled because insecure channel'))




On Tuesday, 6 May 2014 03:46:21 UTC-5, Martin Lohner wrote:
>
> ...yes, yes ...ONLY  for testing or for "remote" development...(my case)
> ..but it is possible (for example) to link to a specific IP address for a 
> long term solution ... . 
> Yes, but it's not "bullet-proof" solution ...
> ml
>
> Dne pondělí, 5. května 2014 21:54:28 UTC+2 Dave S napsal(a):
>>
>> This should only be done for testing purposes, right?  Because the point 
>> of the check of is_local is to prevent unknown users from getting to the 
>> admin app.
>>
>> /dps
>>
>>
>> On Monday, May 5, 2014 7:21:37 AM UTC-7, Martin Lohner wrote:
>>>
>>> Hi...
>>>
>>> try this:
>>> request.is_local=True
>>> in 
>>> web2py\applications\admin\models\access.py  (on line 21) resp. before 
>>>  this code:
>>>
>>> *if request.env.http_x_forwarded_for or request.is_https:*
>>> *    session.secure()*
>>> *elif not request.is_local and not DEMO_MODE:*
>>> *    raise HTTP(200, T('Admin is disabled because insecure channel'))*
>>>
>>>
>>> ml
>>>
>>> Dne neděle, 20. dubna 2014 20:52:28 UTC+2 Pawan Gupta napsal(a):
>>>>
>>>> Hi Everyone
>>>>
>>>> We are having serious problem with our website 911india.com. We have 
>>>> hosted it on Amazon EC2 server and there is a ticket that is issued which 
>>>> redirects us to the admin interface that shows "Admin is disabled 
>>>> because insecure channel" 
>>>>
>>>> I tried searching on the website but nothing seems to make sense 
>>>> probably because we are somewhat beginners. 
>>>>
>>>> Can someone please help us with what could be done to resolve this.
>>>>
>>>>
>>>> Cheers
>>>>
>>>> Pawan
>>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to