![]() |
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. |
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. |
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 |
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.
|
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. |
All times are GMT. The time now is 06:59 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:
|