Log in

View Full Version : IP blocker script



pwccouncilman
08-30-2008, 04:12 AM
Hello,

I'm in need of a script for IE7 that will block IP addresses on a website I'm working on that uses extension .htm.

Most scripts that I have found uses a script for .php or .shtm websites.

Right now, I'm having a problem with someone or something sucking the bandwidth from my site and harshing me via my saybox. I pulled the IP from the saybox and banned them from that utility, but I need to block the person from my entire website, not forum, website and possibly redirect them to another site.

If anyone can provide any direction, it would be greatly appreciated.

Nile
08-31-2008, 04:01 AM
You'd have to use either a mysql(or i) database, or .htaccess. Check out .htaccess banning: http://tools.dynamicdrive.com/userban/

pwccouncilman
09-01-2008, 05:23 AM
I think that's a little more advanced for the site that I use.

The site is on http://www.350.com/ and when i copied the generated code, the site saw it as text and nothing more came of it.

Using 350 is fairly simple, but I just want to block this one particular IP and trying to find a code that I can place on numerous pages is what I'm looking to do.

There are no headers or footers to work with to place the code, just simple text fields with an HTML feature to manipulate the text and images. I placed the generated code there and it returned as normal text.

So is there anything else like a code you may be able to help with to add to the HTML of a paragraph that can be used to block an IP?

Thanks for your help thusfar?

codeexploiter
09-01-2008, 09:17 AM
If your host doesn't allow any client-side/server-side programming as well as any kind of site administration features then I think this kind of functionality can't be integrated in your site. It would be better if you consult your hosting server's support team about the features that you can have in your websites, before spending huge amount of time for it fruitlessly.