The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding "noscript" before any db connection
I need to add these codes
HTML Code:
<noscript><meta http-equiv="refresh" content="0; url=whatyouwant.html" /></noscript> I added it into top of my global.php but I get headers are already sent error. Same error for forumdisplay.php, showthread.php too. |
#2
|
|||
|
|||
That's not possible due to how PHP works.
Browser > HTTP(S) request to the server > PHP script executed > DB connection > complete PHP script result returned to browser. |
#3
|
|||
|
|||
Quote:
I have been using this php script via include method in php: https://sourceforge.net/projects/iosec/ It is protecting us against DOS attacks. It is working in global.php (before all codes) It is checking/filtering the traffic before global.php codes. I have been also using http://www.php-firewall.info via include method in php. HTML Code:
<?php include('iosec.php'); //DOS FIREWALL define('PHP_FIREWALL_REQUEST_URI', strip_tags( $_SERVER['REQUEST_URI'] ) ); define('PHP_FIREWALL_ACTIVATION', true ); if ( is_file( @dirname(__FILE__).'/xxxxxx/firewall.php' ) ) include_once( @dirname(__FILE__).'/xxxxxx/firewall.php' ); //HACK FIREWALL ... |
#4
|
|||
|
|||
You can add it to the headinclude template, but that's when PHP reaches the part where it fetches the templates in vBulletin, long after the initial database connection.
|
#5
|
|||
|
|||
Quote:
I am following this script: https://github.com/JoeCurrie/PHP_BrowserValidation (for anti-ddos) He may be successful... --------------- Added [DATE]1457409995[/DATE] at [TIME]1457409995[/TIME] --------------- I tried this: http://www.inspirationbit.com/php-js...wser-settings/ but it didn't work, cause of security token problem. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|