Restriction access to DirectAdmin by ip

kotel

Verified User
Joined
Sep 15, 2006
Messages
27
Location
Russia
Hello!

I have search solution for Restriction access to DirectAdmin by ip (*to admin account,for DNS cluster function).

It's real?May be You are have any solutions?
May be directadmin can RUN scripts when user try to authorize ?

Happy new year!!!
 
You can put in some custom php code in the header.html of the skin you are using. The php code can detect which user is logged in and what the ip is. If the ip is not the correct one for that user then it can auto logout.

You should first create a custom skin name and copy the skin you want to the new skin name. That way DA updates will not overwrite what you have done.
 
floyd, thank you for your answer!
I try make that, but header.html (/usr/local/directadmin/data/skins/enhancedheader.html) NOT execute any php code .
I try find solution for code execution in help.directadmin.com and forum, but i'm don't find anything.

May be you know, how i can execute code in header.html?
 
Back
Top