Jump to content

SuperUser account access only on development server


NikNak
 Share

Recommended Posts

Hi there.

I would like to be able to provide a third party with SuperUser access to a daily updated clone of a live website, while disallowing access to the live site (for security reasons).

Perhaps this would be an additional bit of code in a separate php file, that could simply be removed or swapped, in order for a third party to run the website locally from the clone... perhaps the init.php or ready.php file?

Or would it be better to add code somewhere to disallow a login for a certain user unless it was from a local IP address? (This would have the advantage that no changes would be needed to any files for it to run locally).

Any help would be appreciated.

Link to comment
Share on other sites

Thank you very much Bernhard, that gives me the basis for what I need.

I think it easiest to just logout the specific user with similar code, regardless of IP, and let them remove the hook manually on a local environment.

Kind regards
Nik

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...