How to give access to programmer/developer to make changes, but prevent undesirable changes? [closed]

Update: as @Mark Kaplun pointed out. once you let a developer in there is no way to restrict him. If you don’t trust someone for good reason, than don’t let him in as there are more than enough privilege escalation exploits going around for him to make himself admin. So the solution I provided needs … Read more

Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?

You could use Javascript <script type=”text/javascript”> function getCookie(c_name) { var i,x,y,ARRcookies=document.cookie.split(“;”); for (i=0;i<ARRcookies.length;i++) { x=ARRcookies[i].substr(0,ARRcookies[i].indexOf(“=”)); y=ARRcookies[i].substr(ARRcookies[i].indexOf(“=”)+1); x=x.replace(/^\s+|\s+$/g,””); if (x==c_name) { return unescape(y); } } } var logged_in=getCookie(“wordpress_logged_in_[HASH]”); if (logged_in!=null && logged_in!=””) { alert(“You are logged in!”); } else { alert(“You are logged out!”); } </script> NOTE: WordPress logged in cookie info can be found here. … Read more

One folder to be accessible by one user

One solution might be to directly restrict access to the file on the server, but utilize a url rewrite to display the content — only if the id matches in the request. Obviously this doesn’t answer every question in the scenario but it does provide a proof-of-concept to indirectly convert a url into a file. … Read more

WordPress blog fails to open

Normally, you’ll get those kinds of results because you have file permissions issues. The files all need to be readable and executable by whatever user the WordPress installation is running as (e.g. on most typical webservers, including if you’re running LAMP/MAMP locally, it’s usually something like the www user and staff group). You’ll need to … Read more