Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 02-25-2008, 01:22 AM   #1 (permalink)
Junior Member
 
Join Date: 02-25-08
Posts: 1
iTrader: 0 / 0%
Latest Blog:
None

bekkin is liked by many
Need help with blocking IPs

what I am trying to do is block an ip after they go to my website, so once a person comes across my site has a look around or even just one page, and then leaves they are blocked and cannot come back a second time. so basically A log would be made with all the user ip's that hit my website that become blocked. I have tried to have a look around on the web but haven't had much luck.

I am not a programmer and usually just try to pick it up as I go along, any help would be much appreciated.
bekkin is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-25-2008, 01:42 PM   #2 (permalink)
Contributing Member
 
Join Date: 10-13-03
Location: Castle Rock, CO
Posts: 60
iTrader: 0 / 0%
Corey Bryant is on the right pathCorey Bryant is on the right pathCorey Bryant is on the right path
You could possibly get the IP address through a server side language - with ASP something like
Code:
<input type="hidden" name="IP" value="<%Response.Write(Request.ServerVariables("remote_addr"))%>" />
and then that could be logged into a database to be checked once the session ended.

Sorry not a programmer here, just trying to offer a suggestion. Chances are you will need to get a programmer unless you are a self-learner.
Corey Bryant is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-26-2008, 09:38 AM   #3 (permalink)
Junior Member
 
Join Date: 02-25-08
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

Fred Sanders is liked by many
Exactly what I would suggest. It's quite simple to implement. If IP exists, redirect the customer to another site. Else insert IP into database. Be aware tho, if your visitors grow into the hundreds of thousands then your site will start slowing down.

You would probably want a cron to clear out entries which are more than a few days old to avoid the slowness and also so that the IPs can be recycled.
Fred Sanders is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
IP Address blocking killua Web Design Lobby 15 02-24-2008 11:37 PM
Godday still blocking google bot? Fivetide Google Forum 2 11-23-2007 10:02 PM
Godaddy Hosting Blocking Googlebot John Scott Google Forum 66 08-02-2007 12:50 AM
How to know a hosting blocking google bot charlesgan Web Hosting Forum 11 07-23-2007 08:38 AM
AOL and Comcast Spam Blocking rtroxel Web Hosting Forum 4 12-11-2006 11:08 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:35 AM.
© Copyright 2008 V7 Inc