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
#2
Interesting: just another way to say " can't load this page" Wink
My website made with GetSimple CMS is

Arte & Società
www.artesocieta.eu

An indipendent website about Italian Contemporary Visual Arts
Reply
#3
i cant see why not
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
(2016-08-11, 01:48:36)D.O. Wrote: Interesting: just another way to say " can't load this page" Wink

Not just that. It attempts to hide the file.

(2016-08-11, 10:05:59)shawn_a Wrote: i cant see why not

Thanks! Smile
Reply




Users browsing this thread: 1 Guest(s)