• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Help to create IP filter

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all.
I have developed a small web forum and I want now to develope an IP blocking filter (like JR's IP filter and other...) to prevent a specifc user from posting.
but I need some help and tips.
1. getRemoteAddress( ) method returns the (IP) address of the client or last proxy that sent the request.
Ok, if this user is behind a proxy, how can I know his IP (so, I can block him) ?
2. Each time a computer connects to internet, it gets a dynamic IP (from DCHP, I think).
well, I have blocked a user which his IP is : 66.122.6.14 (for example).
when he connects to the internet again, he gets a new IP, how can I block him ?
I need every post here...
Thanks.
 
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Basically you can't unless there is some way to capture the MAC address, which I don't think there is.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mvnforum application has an IP filter ....
this filter uses a properties file that contains the blocked IP.
Any help from our dear moderators ?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MVNForum is an open source project.
You don't need any help from a moderator.

http://sourceforge.net/projects/mvnforum/
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
I know it is an open source, but I want some rancher here that he can explains my previous question to me (like how to know the IP ..)....
And since JR contains a similiar filter, our dear moderators can help me .
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you haven't already, download and install Firefox. Then go get the Live HTTP Headers plugin for it. http://livehttpheaders.mozdev.org/
With it, you can see, in real time, exactly what information the browser is sending to the server. This will include the remoteAddress as well as any app specific cookies.

At the moment, Javaranch isn't using MVNForum. It's still using a cgi solution that is not open source and was not put together by the moderators of this forum. The MVNForum version is in the works.

If Javaranch can shut someone off, even after they change IPs, then it's not using a purely IP based solution. It may be using a combination of IP and the cookies it sets.
 
You didn't tell me he was so big. Unlike this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic