I use a free database-driven ASP guestbook. I want to add a IP address
blocking filter to it( just to block one particular guest). What is the
easiest way to do so? Thanks.
pcchong
Jul 19 '05
14 26496
Are you sure the offender has an ip that should be blocked by this
statement? How are you verifying this?
Are you sure Request.ServerV ariables("REMOT E_ADDR") contains that ip
address? How are you verifying this?
Bob Barrows
pcchong wrote: I place this in the beginning of the first asp:
<% dim sIP sIP = Request.ServerV ariables("REMOT E_ADDR") if Instr(sIP, "###.###.## #") > 0 then Response.End end if %>
Anything wrong? Please advise. Thanks.
pcchong
"Jeff Cochran" <jc************ *@naplesgov.com > wrote in message news:40******** *******@msnews. microsoft.com.. . On Fri, 21 May 2004 21:53:32 +0800, "pcchong" <pc*****@singne t.com.sg> wrote:
My joy is shortlived. This guest still managed to enter with the same IP (within the IP range that the IP blocking filter set). How can he get through? Thanks.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
I can see his IP from the guestbook. I tested this filter using my IP
address and it worked, that is why I am so puzzled. I would appreciate it if
you could suggest how I can verify the IP. Many thanks again.
pcchong
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:eZ******** ******@tk2msftn gp13.phx.gbl... Are you sure the offender has an ip that should be blocked by this statement? How are you verifying this?
Are you sure Request.ServerV ariables("REMOT E_ADDR") contains that ip address? How are you verifying this?
Bob Barrows pcchong wrote: I place this in the beginning of the first asp:
<% dim sIP sIP = Request.ServerV ariables("REMOT E_ADDR") if Instr(sIP, "###.###.## #") > 0 then Response.End end if %>
Anything wrong? Please advise. Thanks.
pcchong
"Jeff Cochran" <jc************ *@naplesgov.com > wrote in message news:40******** *******@msnews. microsoft.com.. . On Fri, 21 May 2004 21:53:32 +0800, "pcchong" <pc*****@singne t.com.sg> wrote:
My joy is shortlived. This guest still managed to enter with the same IP (within the IP range that the IP blocking filter set). How can he get through? Thanks. -- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
"pcchong" <pc*****@singne t.com.sg> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. I can see his IP from the guestbook. I tested this filter using my IP address and it worked, that is why I am so puzzled. I would appreciate it
if you could suggest how I can verify the IP. Many thanks again.
Perhaps you enemy is bypassing the initial (menu?) ASP and going straight to
the guestbook ASP. Move the new code from your initial (menu) ASP over to
the page where you insert the guestbook information into your database.
That way, you enemy will be able to type in a post, but it won't get written
to your database, and therefore no one will ever see it.
HTH,
PW
PW wrote on 23 mei 2004 in microsoft.publi c.inetserver.as p.general: "pcchong" <pc*****@singne t.com.sg> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. I can see his IP from the guestbook. I tested this filter using my IP address and it worked, that is why I am so puzzled. I would appreciate it if you could suggest how I can verify the IP. Many thanks again.
Perhaps you enemy is bypassing the initial (menu?) ASP and going straight to the guestbook ASP. Move the new code from your initial (menu) ASP over to the page where you insert the guestbook information into your database. That way, you enemy will be able to type in a post, but it won't get written to your database, and therefore no one will ever see it.
why not block both pages?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Yes, you are right. Instead of just put the filter in the index(first) file,
I should put it also in the other input files. Problem solved. Many many
thanks to everyone.
pcchong
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.29... PW wrote on 23 mei 2004 in microsoft.publi c.inetserver.as p.general:
"pcchong" <pc*****@singne t.com.sg> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. I can see his IP from the guestbook. I tested this filter using my IP address and it worked, that is why I am so puzzled. I would appreciate it if you could suggest how I can verify the IP. Many thanks again.
Perhaps you enemy is bypassing the initial (menu?) ASP and going straight to the guestbook ASP. Move the new code from your initial (menu) ASP over to the page where you insert the guestbook information into your database. That way, you enemy will be able to type in a post, but it won't get written to your database, and therefore no one will ever see it.
why not block both pages?
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dariusz |
last post by:
I am a beginner in PHP and MySQL, and am working through a book and various
online tutorials on PHP and MySQL and now stuck - installed everything on
"localhost" and it all works fine. My question is as follows.
I have a guestbook type code I'm trying to write, but when the results get
printed to a webpage, it outputs completely nothing as what was entered in
the guestbook database. No errors appear to be generated, and I can't see
if...
|
by: knoak |
last post by:
If a filter with bad words etc. isn't what you mean,
you could put an extra field in the DB, called 'OK'
or something like that.
When someone enters a message in the GB, the initial
value of 'OK' is 0. You receive a link/message by mail,
telling you that there is a new entry.
you log in into the admin part, read the message, and set
ok to 1 (for instance by checkbox)or delete the message if
it's nonsense.
|
by: Rune Runnestø |
last post by:
Hi, I have made a small program that doesn't work quite the way it should.
It is a guestbook for the web, where visitors can write back their
greetings. The program consists of 3 files:
- guestbook.jsp -> this is the form
- writeToFile -> writing the captured data from the form to a file
- readFromFile -> reading all the greetings to the file guestbook.jsp
Here is the file Guestbook.jsp:
------------------------------
<!--...
|
by: DigitalRick |
last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my
guestbook. It had been working fine untill I upgraded to Server 2003 (I am
also running Exchange 2003) all locally. I will include the code I
originally used. I understand I should switch from CDONTS to CDO mail but
after several sttempts I am finding a very hard time getting the new CDO mail
to work properly. Any assistance with this would be greatly...
|
by: Viken Karaguesian |
last post by:
Hello everyone,
Just wanting some advice. I'd like to start removing the
Microsoft-generated guestbook (a feature of FrontPage) on my websites
but I'm not sure if it can be done just using HTML. There seems to be a
lot of server-side processing going on. The guesbooks are setup in such
a fashion that when user submits an entry, not only is it posted in the
page for public viewing, but I also receive an e-mail letting me kow
that the...
| |
by: imarkdesigns |
last post by:
hello guys, im in need of something...
something that can validate individual entry to my guestbook... which it can validate the entry pass to my form when someone signed on it....
my custom guestbook contains:
Name
Email
Website
Referrer
|
by: martin lanny |
last post by:
Simple network scanner is a part of my dotnet solution. It pings ip
addresses in a selected network range and gives me the response time for
each computer it finds.
Anyhow, I would need to retrieve two more pieces of information for each
active (local network) IP address:
- Computer's Host Name
- Mac Address
|
by: infoseekar |
last post by:
HI Guys
I am a beginner.
I am trying to create a guestbook. I have the code for it and it is in three parts. Part 1 "dp.php" to open database and make connection Part 2 "index.php" which will show the guestbook entries and Part 3 "add.php" to add new entry.
The problems is when i run any of the file nothing happens i.e. no error(s) and no result.
I tired to check the code so many times and couldnt any find any errors.
Part 1
|
by: Thekid |
last post by:
Hi, I'm using xampplite and I'm trying to make a guestbook and a forms page where you can post to the guestbook with PHP & MySQL. I got the code from a website but it wasn't working so I tinkered with it a little and it's closer but not quite right. I made a database named 'guestbook' with a table named 'visitors'. In it are the following fields:
TimeStamp
Name
Last
email
comment
Here is the code to the guestbook (guestbook.php),...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |