![]() |
Admin CP & $_SERVER['HTTP_REFERER']
Is there a method of making the only means of accessing the admincp and modcp directories via a referrer from that direct URL?
PHP Code:
|
For security?
It's easy to spoof the referrer, so it's not reliable at all. AFAIK not all browsers send the header either (though most do). If you wanted a wildcard, you could use another function like strpos. PHP Code:
Anyway, not recommended if this is a preemptive strike for security. |
It was just as a basic attempt to stop people directly linking to our admin CPs (i.e. having to log in first, then I would create a script to stop users & mods getting to the admin CP.
|
All times are GMT. The time now is 11:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|