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

Subscriptions - ASP

I'm a newbee in this area - and besides this, I'm Danish, which means that
my English in between may seem poor - anyway, I'll try this question:

We run a news service (www.momsmail.dk). No, it's not about Mom's - it's
about VAT ("moms" means VAT in Danish). Anyway, we sell subscriptions and
use an Access datebase to controll access to our web-site.

One potential customer has asked us, if we can provide an IP-access service.
I know what they mean - that we'll log "from where the viewer is coming, and
if they are coming from an IP adresse we accept, no username or password is
required.

I've beensearcheing a bit on the internet to find a script thay may lead me
to understand the technique behind IP-access, but haven't forund anything
useful. Therefore: Are any of you able to help me - either with source or a
link?

Best regards
Lars

Jul 19 '05 #1
2 1147
<%
'// Check and transfer based on IP
Dim strIP
strIP = request.servervariables("REMOTE_ADDR")
if strIP = "127.0.0.1" then
response.redirect "index.asp"
else
response.redirect "error.asp"
end if
%>

could also use a select case instead of "If / then" if you wanted to

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Moms <nospam_gosvig@nospam_momsmail.dk> wrote in message
news:c4***********@news.cybercity.dk...
I'm a newbee in this area - and besides this, I'm Danish, which means that
my English in between may seem poor - anyway, I'll try this question:

We run a news service (www.momsmail.dk). No, it's not about Mom's - it's
about VAT ("moms" means VAT in Danish). Anyway, we sell subscriptions and
use an Access datebase to controll access to our web-site.

One potential customer has asked us, if we can provide an IP-access service. I know what they mean - that we'll log "from where the viewer is coming, and if they are coming from an IP adresse we accept, no username or password is required.

I've beensearcheing a bit on the internet to find a script thay may lead me to understand the technique behind IP-access, but haven't forund anything
useful. Therefore: Are any of you able to help me - either with source or a link?

Best regards
Lars

Jul 19 '05 #2
Moms wrote on 27 mrt 2004 in microsoft.public.inetserver.asp.general:
I've beensearcheing a bit on the internet to find a script thay may
lead me to understand the technique behind IP-access, but haven't
forund anything useful. Therefore: Are any of you able to help me -
either with source or a link?


If you need a few IP's make /savegardInclude.asp containing:

<%
Response.Expires = 0
q = request.servervariables("remote_addr")
ok = session("loggedin")
administrator = ""
If q = "123.456.789.2" then ok = "John"
If q = "123.456.789.21" then ok = "Fred"
If q = "123.456.789.211" then ok = "James"
If q = "123.456.789.12" then ok = "Me":administrator = ok
If q = "123.456.789.112" then ok = "You":administrator = ok
if ok = "" then server.transfer "/login.asp"
%>

and include this in the top of ALL pages you want savegarded:

<%@ Language=VBScript %>
<!-- #include virtual ="/savegardInclude.asp"-->
<html> ...
Hi, <%=q%><br>

The value of administrator<>"" can be used for extra privileges.
If the amound of ip's gets large a database can be used.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #3

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

Similar topics

1
by: Job Lot | last post by:
What all Microsoft Licenses or Subscriptions do we need before we start distributing application to clients?
1
by: Bungle | last post by:
Hi We are having major problems getting reporting services subscriptions to work. We have the following setup: Windows 2K Server with Service Pack 4 Installed SQL Server 2000 with Service...
2
by: Rider | last post by:
Hello all, I have Visual C++ 6.0 Professional Edition and I had ti reinstall it when my hard drive crashed. The MSDN cd's that came with Visual C++ are now corrupted (do to my 5yr old little girl...
6
by: Jorge | last post by:
Hi Just a quick question : If i subcribe today MSDN Professional it include vs.net pro 2003, when vs.pro 2005 released will they send the new version for free? Regards Jorge
3
by: Jose Fernandez | last post by:
Hello. I would like to know how could i get all the subscriptions that my form has with the events of their controls. For example. I have a form with a textbox, a button and a dropdown. I...
6
by: =?Utf-8?B?Z3V5?= | last post by:
I have an expired MSDN subscription and need to install some software (Server 2003 and VS) from it that requires a product key. Despite the FAQ explicitly stating that I can use the software after...
0
nev
by: nev | last post by:
I have created custom folders and I wanna move some of my subscriptions to that folder. But everytime I try to check the particular subscriptions and select "move to folder..." then click GO, the...
1
by: Jim | last post by:
We've got a problem with a 2005 publisher to a 2005 subscriber. We had a merge subscription that got four months out of date. It was fine when the two machines were back-to-back (snapshot applied...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.