Free Web Hosting Forum
(#11 (permalink))
Old
Jordan's Avatar
Senior Member
Jordan is on a distinguished road
 
Posts: 1,860
Join Date: May 2008
Send a message via AIM to Jordan Send a message via MSN to Jordan
Default 06-23-2012, 10:02 PM

You could include an object in the template (<<object width="0" height="0" type="text/html" data="link to block script"></object>) and then make a php script that decided if the IP is blocked and then sends a header to the IP with a file in your site saying BLOCKED! or something of the sort

You could write the script like...
<?php
if($_SERVER['REMOTE_ADDR'] == "0.0.0.0"){ <-- replace 0.0.0.0 with IP to block
header('Location: http://yourdomain.com/blocked.html'); <-- replace with blocked page
{
?>

You could be more specific and create a file of blocked IP's. I will write one if you ask


~Jordan

Bye
Reply With Quote
Sponsored Links
(#12 (permalink))
Old
Junior Member
binhpv186 is on a distinguished road
 
Posts: 1
Join Date: Jul 2012
Default 07-05-2012, 05:11 PM

Thanks. It's usefully with me
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com