ban ip script?
3 posters
Page 1 of 1
ban ip script?
Is there any ban ip or block then redirect to another site. i found this javascript code but i doesn't know where i must put it
because i tried it on descripton and they can't put all words because of maxium words.
here is a script
because i tried it on descripton and they can't put all words because of maxium words.
here is a script
<script type="text/javascript">
var bannedips=["84.108.43.133", "11.11.11.11"]
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 forum")
window.location.replace("http://crystaldekaron-ban.99k.org/")
}
</script>
pety55- New Member
- Posts : 14
Reputation : 1
Language : Croatian
Re: ban ip script?
Try an announcement that is on all pages.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: ban ip script?
Modules>Javascript Codes Management
Enable Javascript code management : Yes
Add the javascript.
See if it works.
Enable Javascript code management : Yes
Add the javascript.
- Code:
var bannedips=["84.108.43.133", "11.11.11.11"]
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 forum")
window.location.replace("http://crystaldekaron-ban.99k.org/")
}
See if it works.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum