Darksat IT Security Forums
April 23, 2017, 07:38:16 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
 
  Home Help Search Gallery Links Staff List Login Register  

Php Block script


Pages: [1]
  Print  
Author Topic: Php Block script  (Read 1513 times)
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« on: March 30, 2009, 03:16:41 pm »

Php blocking script
Quote
<?php
$deny = array("83.71.81.*", "213.94.233.*", "213.94.*.*");
if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) {
   header("location: http://www.google.com/");
   exit();
} ?>
Report Spam   Logged

Social Buttons

Defcon 5
Master
*****
Posts: 2410



View Profile WWW
« Reply #1 on: March 31, 2009, 11:45:32 am »

I find htaccess more effective.
Report Spam   Logged
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« Reply #2 on: April 01, 2009, 03:36:49 am »

Sure, httaccess is way more effective, and you can apply it to all site content.
Looking to rank for the term though.
Plus it would make a good base for a geotargeted content delivery script.
Report Spam   Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Buy traffic for your forum/website
traffic-masters
Powered by SMF | SMF © 2016, Simple Machines
Page created in 0.094 seconds with 13 queries.