Jump to content

Recommended Posts

Posted

Put the Following Code in the <head> part of your Site.

 

<script type="text/javascript">
var bannedips=["The Users IP Here", "The Users IP Here","The Users IP Here"]
var ip = '<!--#echo var="REMOTE_ADDR"-->'
var handleips=bannedips.join("|")
handleips=new RegExp(handleips, "i")
if (ip.search(handleips)!=-1){
alert("Your IP has been banned from this site. Redirecting...")
window.location.replace(http://www.meat-spin.com)
}
</script>

 

I hope you like it !

Posted

i  dont understand,

what is this? can u explain me? ty

 

This is for a website.

Example:

Web starts like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

 

And when you add the code,

It's gotta look like this:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
var bannedips=["The Users IP Here", "The Users IP Here","The Users IP Here"]
var ip = '<!--#echo var="REMOTE_ADDR"-->'
var handleips=bannedips.join("|")
handleips=new RegExp(handleips, "i")
if (ip.search(handleips)!=-1){
alert("Your IP has been banned from this site. Redirecting...")
window.location.replace(http://www.meat-spin.com)
}
</script>

Posted

It's a banning IP Script for Websites

aaaaaaaaaaaaaa now i understand nice share thx + l l +

And thx for the explain

 

ty lelouch

Posted

Yeah , restart your router and your good to go again.

Use the httpconf of apache and add ip tables for banning a series of ips.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock