AR
slcash wrote:
How to stop browser inject
$browser = isset($_SERVER['HTTP_USER_AGENT']); // this is just one for this example
$browser = trim($browser); // remove new line
$browser = htmlentities($browser, ENT_QUOTES, 'UTF-8'); // convert html symbols into their entities including both quotes and force utf8 encoding
if (get_magic_quotes_gpc()) $browser = stripslashes($browser); // check if is magic quotes enabled and strip their slashes if is so the data wont be escaped twice
$browser = mysql_real_escape_string($browser); // escape it
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
kruzada wrote:
where to put this budz?in core or in config?
This is explanation step by step how to block it, it wasn't for copy-paste, so you need to apply it where ever its needed.
icedroplet1987 wrote:
I did purposely uploaded that shell but not functional , just to check security with my .htaccess. It worked perfectly. And for post, i used string replacement. Not having clue about browser inject. But didnt got any security bug after apgrading sess. Hide, phpthumb, shell protection and sql injection protection with same string replacement. @ OZZIE 🙂
AND GUYS, PLEASE DO HIT THANKS IF YOU LIKED AND USING IT.
Browsers are user input and needs to be sanitized like post texts. String replacements are useless simply because it can be encoded, and inefficient for posts because posters usually needs those chars to write their posts. 😉
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
icedroplet1987 wrote:
YUP, BUT AS I TOLD EARLIER that i wasnt just started learning things so only string replacement was the easiest option for me. although it does affects the user"s posts. better, make it more usefull for users by coding with expert hands( you) . 🙂
but i did ok, didnt i?
Im not an expert, far from it. 🙂 I don't know, didn't download it just have read posts.
slcash wrote:
thank bro. . . .you are all ways help others i see that forum. . . . . . . Thank you agian
arange , . . ,
. .
You're welcome.
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***