41 replies · 1,826 views · started 18 years ago · 1 min read
TL;DR · summary of 41 replies
- The code approach to ban a user with their nick and IP/Browser combo is not provided in the thread as it concluded that adding such functionality would require custom coding work which was deemed too time-consuming by...
- A simple file named blocked.php was suggested for banning users based on browser strings, but no full script or code examples were given.
- The use of a single banned.txt file to store banned details was proposed as an alternative method, though it did not include how to save data in combo format like nokia 6630 | 123.456.789.65.
- No solution or code for banning users based on nick and IP/Browser combination was provided in the thread.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
like user can see the [useragent] with version name etc etc of the browser right now it only show opera and the mobile model but it doesn't show the mobile version or operamini version etc etc
Thats not answers of my questions. I asked you 3 questions and you could not answer single one. That means you dont understand why to use explode(), htmlspecialchars(), print_r() and so on.
Alright this is the last help from me for you.
browser.php
<?php
$browser =$_SERVER['HTTP_USER_AGENT'];
$rukiya = explode(" ",$browser);
echo $rukiya[0]; //shows browser name with version
$rukiya = explode("/",$browser);
echo "
browser name: ".$rukiya[0]."
Version & OS: ".$rukiya[1]; //shows browser name and version, OS speratedly
?>
yeh i got the code you tell me about it before i know but when ever i put the code it shows my one not the user one for suppose you are the user of my chat so i want to see your browser but it shows my browser and version not the user one.