Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Questions: Access Denied and Auto IP ban?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BIOS" data-source="post: 334277" data-attributes="member: 15674"><p>I can give you an example script of the auto ban if you wanted me to?</p><p></p><p>Although you'd have to adjust it to your needs and improve on it since it'd just be a basic version of the script.</p><p></p><p>Edit: Here's an example, sorry if I made a mistake anywhere I just did a quick example to show you how.</p><p>You would add this to the top of each page you want the user to be banned when they access, note this would ban the user providing that you have the same database structure as the query.</p><p>[PHP]</p><p><?php</p><p> if(isset($_SESSION['id'])){</p><p> mysql_query("</p><p> INSERT INTO bans (id, bantype, value, reason, expire, added_by, added_date)</p><p> VALUES ('', 'user', '" .$_SESSION['username']. "', 'Unauthorized access', '31333392000', 'System', '" .time(). "')</p><p> ") or die(mysql_error());</p><p> </p><p> }else{</p><p> die('You don\'t have access to view this area');</p><p> }</p><p>?></p><p>[/PHP]</p></blockquote><p></p>
[QUOTE="BIOS, post: 334277, member: 15674"] I can give you an example script of the auto ban if you wanted me to? Although you'd have to adjust it to your needs and improve on it since it'd just be a basic version of the script. Edit: Here's an example, sorry if I made a mistake anywhere I just did a quick example to show you how. You would add this to the top of each page you want the user to be banned when they access, note this would ban the user providing that you have the same database structure as the query. [PHP] <?php if(isset($_SESSION['id'])){ mysql_query(" INSERT INTO bans (id, bantype, value, reason, expire, added_by, added_date) VALUES ('', 'user', '" .$_SESSION['username']. "', 'Unauthorized access', '31333392000', 'System', '" .time(). "') ") or die(mysql_error()); }else{ die('You don\'t have access to view this area'); } ?> [/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Questions: Access Denied and Auto IP ban?
Top