Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide gsconfig ?
#1
Instead of showing "You cannot load this page directly." when a user attempts to visit the gsconfig file, is it ok to edit that part of gsconfig.php to this? :

Code:
/** Prevent direct access */
if (basename($_SERVER['PHP_SELF']) == 'gsconfig.php') {
header('Location: http://mysite.com/404/');
die();
};

Is that code safe and correct? I don't want to introduce any problems...
Reply


Messages In This Thread
Hide gsconfig ? - by ferby - 2016-07-07, 03:51:50
RE: Hide gsconfig ? - by D.O. - 2016-08-11, 01:48:36
RE: Hide gsconfig ? - by shawn_a - 2016-08-11, 10:05:59
RE: Hide gsconfig ? - by ferby - 2016-08-15, 17:51:20



Users browsing this thread: 1 Guest(s)