How to ban IP by ASP.NET

Hi All,

I develop an ASP.NET website for free users, they can post question without sign-up. How to get IP from client and block the spammers?


Thank you
#-Link-Snipped-#
_________________
_Jason Harding
#-Link-Snipped-#
Nha khoa Nhân Tâm - Địa chỉ Nha khoa uy tín đạt chuẩn quốc tế 2023

Replies

  • Manish Goyal
    Manish Goyal
    Blocking of spammers i think tough job buddy.😉
  • canadac57
    canadac57
    non-sensical answer
  • Manish Goyal
    Manish Goyal
    sorry buddy i was just kidding.

    use the following code:



    Your IP address<%= Request.ServerVariables("REMOTE_ADDR") %>

    and for blocking spammers you have to use some kind of program or logic

    sorry for previous reply
  • canadac57
    canadac57
    thank you i will try with your code
    But Your IP address<%= Request.ServerVariables("REMOTE_ADDR") %>
    does it mean to get the IP from Client?
  • Manish Goyal
    Manish Goyal
    yes..
    It will retrieve Ip address of client.

You are reading an archived discussion.

Related Posts

I am in need of a sensible software for fluid flow problem... I want to make a modification in Disc brake in bike... So please help me....... please suggest any...
im earnest, i have decide to do a mini project.but im nt aware of the topic...i need suggestions which must be easy to present.fire alarm is my suggestion,wat u think?..but...
i m in 4th sem Electronics and Communications engg. in india k all i need is, some suggestions on Op-amp projects if u got any ideas throw 'em on me😛,
Is there anyone here good at finding recurrence formulas in algorithm design? Or with a good grasp of a logarithmic series like: a[sub]n[/sub] = a[sub]n-1[/sub] + a[sub]n-2[/sub]? Like how a...
I need some helps and some suggestion regarding to this task. The objective of the task are: 1. To design and build an autonomous mobile robot that will collect one...