Hello Guys
In this tutorial you can block IP ban user in the main page of your site and you can show text in the index page
So lets start
Open you website index.php paste this below code at line 41
Have a question use below comment form
Please share this tutorial with your friend's
In this tutorial you can block IP ban user in the main page of your site and you can show text in the index page
So lets start
Open you website index.php paste this below code at line 41
<?php // Checking IP address from database $ip= $_SERVER['REMOTE_ADDR']; $res = $db->run_query("select * from ".$config->prefix."banip where ip='".$db->escape_string($ip)."'"); // If found the show an Error message / Page if($db->get_num_rows($res)>0){
echo '
<html>
<head>
<title>Access Denied</title>
</head>
<body>
<div align="center">You don\'t have access to this website.For more info contact website admin at mail@example.com
Powered by <a href="http://vctuts.blogspot.com/"> vcTuts</a>
</div></body></html>'; $db->free_result($res);
exit(); ?> Have a question use below comment form
Please share this tutorial with your friend's
No comments:
Post a Comment
Have a question?Use comment form !