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

Blocking referring sites in ASP

How do I block referring sites in ASP using VBScript?

Like blocking referrer's from:
192.025.215.001
and
altavista.com
Jul 19 '05 #1
2 1924
Gazing into my crystal ball I observed F Magnell <!m*********@hotmail.com>
writing in news:v2********************************@4ax.com:
How do I block referring sites in ASP using VBScript?

Like blocking referrer's from:
192.025.215.001
and
altavista.com

Watch wrapping -

<% if request.servervariables("remote_addr") = "192.025.215.001" then
'do what you want
elseif instr(lcase(request.servervariables
("http_referer")),"altavista.com") > 0 then
'do what you want to altavista
end if
%>

Just out of curiosity, why do you want to block AltaVista? AFAIK, it's
still a good search engine, and it's spider does honor the Robots Exclusion
Standard.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #2
On Mon, 18 Aug 2003 17:47:36 GMT, Adrienne <ar****@sbcglobal.net>
wrote:
Gazing into my crystal ball I observed F Magnell <!m*********@hotmail.com>
writing in news:v2********************************@4ax.com:
How do I block referring sites in ASP using VBScript?

Like blocking referrer's from:
192.025.215.001
and
altavista.com

Watch wrapping -

<% if request.servervariables("remote_addr") = "192.025.215.001" then
'do what you want
elseif instr(lcase(request.servervariables
("http_referer")),"altavista.com") > 0 then
'do what you want to altavista
end if
%>

Just out of curiosity, why do you want to block AltaVista? AFAIK, it's
still a good search engine, and it's spider does honor the Robots Exclusion
Standard.


I dont want do block AltaVista, it was just an example.
The sites I want to block is some unwanted .ru addresses

Thanks :)
Jul 19 '05 #3

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

Similar topics

2
by: Thomas Matthews | last post by:
Hi, In pursuit of a child class blocking a parent's virtual method, I came up with this example: #include <iostream> #include <cstdio> using namespace std; class Grandparent
23
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I...
16
by: Jon | last post by:
Hi there, In many of my sites I have code like: <SCRIPT language="JavaScript" type="text/javascript"> <!-- user = "USER"; isp = "DOMAINNAME.XXX"; document.write('<a href=\"mailto:' + user +...
38
by: Emmett | last post by:
I have a simple jacascript that randomizes the background of the top frame of my webpage http://www.duke.edu/~efn. For some reason, my Internet Explorer started blocking the background and...
1
by: Dave | last post by:
I'm using the following statement to receive info from a TCPListener socket, Int32 bytes = s.Receive(RecvBytes, RecvBytes.Length, 0); It works fine but it blocks. I need the receive to not...
4
by: Greg Livengood | last post by:
I need to test my ASP.net web application for the case that the client browser doesn't support cookies or for the case that cookies are turned off on the client browswer. What is odd is that when...
7
by: Charlie | last post by:
Hi: I'm using a lot of JavaScript and HTML 4.0. Things seem to work well in Netscape 7.0 and IE 5.5\6, but not Netscape 4\6 and not sure of IE 5.0. My site blocks downlevel browsers and...
5
by: Simon Knox | last post by:
Hi I have a web app that has a legitimate use for pop up windows. My web app is an insurance quoting app. I use the window.open method to display another aspx page so that the user can check...
1
by: Pradeepgupta | last post by:
Hello! i my searching maximum of the sites for Shot out my small problem by getting the code for Blocking the current running URL & Knowing the same through Visual basic 6.0 my fava....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.