473,326 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Preventing IPs from reaching server

I'm looking for some sample code that would show me how to prevent 2-3
ips from connecting to my server. Basically a very dumb firewall.

So the process would work like this...

upon request, on any port, the application would grab the users ip. If
it is one of the three blocked ips it would drop connection.

Any direction on this task would be appreciated.

-Peter

Nov 21 '05 #1
3 1155
Why not just buy a firewall, they only cost about £60

--
Terry Burns
http://TrainingOn.net


"pmclinn" <pe***@mclinn.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I'm looking for some sample code that would show me how to prevent 2-3
ips from connecting to my server. Basically a very dumb firewall.

So the process would work like this...

upon request, on any port, the application would grab the users ip. If
it is one of the three blocked ips it would drop connection.

Any direction on this task would be appreciated.

-Peter

Nov 21 '05 #2
I want to add predetermined programmatic triggers, that will add people
to the deny list. And I do not feel like buying a good cisco router to
do it. Unless you know of another firewall, cheap, that I can ssh2
into and upload a new access list?

Looking at my current router logs there would be over a 1000 ip blocked
within the first day....

So far the code I have found just redirects users by ip on port 80.

Nov 21 '05 #3
This might do the trick for you , I think you can upload lists into it

--
Terry Burns
http://TrainingOn.net
"pmclinn" <pm*****@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I want to add predetermined programmatic triggers, that will add people
to the deny list. And I do not feel like buying a good cisco router to
do it. Unless you know of another firewall, cheap, that I can ssh2
into and upload a new access list?

Looking at my current router logs there would be over a 1000 ip blocked
within the first day....

So far the code I have found just redirects users by ip on port 80.

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Hane | last post by:
Hi all, I would like give users the ability to experiment with complex queries but I'm worried about them creating queries that will bog down the server. Does anyone have any ideas for...
8
by: CJM | last post by:
How do people go about preventing the user from submitting a form for a 2nd time? For example, the user submits a form, clicks on the back button, and the submits the form again. I have used...
18
by: Elroyskimms | last post by:
I have a table using an identity column as its Primary Key and two columns (table reduced for simplicity) EmployeeNumber and ArrivalTime. CREATE TABLE ( IDENTITY (1, 1) NOT NULL , (10)...
4
by: Drew | last post by:
I have a permission tracking app that I am working on, and I have made the insert page for it. I am having issues on how to prevent duplicates from getting entered. Currently the interface for...
4
by: Kevin Audleman | last post by:
My site has come under attack from sql injections. I thought I had things handled by replacing all single quotes with two single quotes, aka Replace(inputString, "'", "''") Alas, clever...
1
by: sweety | last post by:
fread hangs before reaching eof() Hi, I'm reading the datat from the file. I could read the data by fread but it hangs on last data. its juz before reaching eof(). The same file could read...
7
by: newbie | last post by:
hi, I have the following construct: public class Form1:System.Windows.Forms.Form { ..... ----a TextBox is created by the Designer in this area: 'textBox1' ..... }
2
by: raghuram.nidagal | last post by:
We use xmlhttp to query data from the server and also to submit data to the server to initiate transactions. The querying is a polling mechanism which is continuously polling the server. We notice...
0
by: moltendorf | last post by:
I've been trying to find a suitable method for preventing race conditions in my own code. Currently I'm using a file and the flock function to prevent code in other threads from executing at the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.