473,396 Members | 1,945 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,396 software developers and data experts.

How to restrict internal customers to access a pop up page

I have a page which has a pop up page. the pop up page should be visible only for external customers. when the main page loads, internal customers within an ip range should not get the pop up page, I have a code

Dim clientIP As String = Request.ServerVariables("REMOTE_ADDR").ToString



If InStr(clientIP, "120.254") = False And _
InStr(clientIP, "080.91") = False And _
InStr(clientIP, "090.256") = False And _
bodypopup.Attributes.Add("onLoad", "popup('http://www.website.com/popup.html', 'popup');")


but it doesn't filter my ip s which are starting from 120.154, how can i filter these IPs?do I need to use some thing else than Instr?
Oct 28 '10 #1
0 1163

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Irwinsp | last post by:
Hi All, I have a form that needs to be placed on the web. The form contains a subform. The relationship from the form to the sub-form is 1 to many. Can this type of form be converted to a Data...
0
by: Kim Skytte | last post by:
I have developed a Data access page in access 2002. I want to deploy it on my webserver ( IIS 5.1). However i get an error with the connection string to the database. In the source of my data...
0
by: Manystrengths | last post by:
I must warn all of you willing to help me that this is my first go at designing a functional data access page. Please bear in mind that we all start somewhere so if I should be asking the absolute...
0
by: consulttech2004 | last post by:
Folks, Someone I know is using Microsoft Access 2003 to create a Data Access Page. They have inserted a Quick Time Movie. When they view the page (the HTML version of the page) and run the...
0
by: Spencer Lee | last post by:
I have encountered a very unique problem (for me): I created a data access page, with 3 levels of groups. I put the file on the web folder (intranet), and it seems like everything is working...
1
Raistlin Windblade
by: Raistlin Windblade | last post by:
I am really hoping someone can help me with this. I'm taking a college class online on Access 2003. There is a chapter about using Internet Explorer with an Access page. (provided by the teacher). ...
0
by: Michael Shaw | last post by:
I am just starting out trying to create my first data access page (DAP) using Access 2000. I have created a default index.html page plus one other "Members" page. I have placed a command button...
2
by: mohamed27 | last post by:
hi : in iis 6 i need to restrict web site access i need to restrict access to this site ,just only access it from dialup with a phone number services thanks
2
by: MSCTC | last post by:
Hi Guys, This should be quite simple but my brains are being seriously racked. I have created a data access page as the report I want to generate is 4 pages (too long for a regular report). Access...
3
by: JP Romano | last post by:
Hi - I'm putting together a status report summary for a team of about 15 based in the US (various places), London, Hong Kong, etc. The users have expressed interest in using a web form (data access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.