Current location: Hot Scripts Forums » Programming Languages » ASP » Restrict a domain or access


Restrict a domain or access

Reply
  #1 (permalink)  
Old 07-21-03, 07:46 PM
Gurrutello Gurrutello is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Restrict a domain or access

hello
how can i do

http://www.yahoo.com/menu
and
http://www.google.com/search
( this in an example )

all webs that are using yahoo.com ( http://www.yahoo .com/menu )
or
using google.com http://www.google.com/search
send them to another page

the way i want do is

url=request.querystring("url")

if url<>"yahoo" then
response.redirect"out.asp"
end if
if url<>"google" then
response.redirect"out.asp"
end if
select case url
case"google"
response.redirect"out.asp"
case"yahoo"
response.redirect"out.asp"
end select

i dont want websites using yahoo.com or google.com
ej.
http://www.yahoo.com/my_page

http://www.yahoo.com/your_page
http://www.yahoo.com/his_page
http://www.yahoo.com/her_pageç

tank you!!




Last edited by Gurrutello; 07-21-03 at 07:50 PM.
Reply With Quote
  #2 (permalink)  
Old 07-23-03, 09:20 AM
angst angst is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
use HTTP_REFERER,
like
if Request.ServerVariables("HTTP_REFERER")="domain.co m" then
blah blah blah
end if
Reply With Quote
  #3 (permalink)  
Old 07-23-03, 05:19 PM
Gurrutello Gurrutello is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
hello
thanks for your answer but... (allways a but.. )

i think i did not explain well,


The thing i want to do is a replace


i dont like websites that host or with url from geocities, brinkster, yahoo

example, if i recibe websites like
http://www.yahoo.com/mysite
http://www.brinkster.com/yoursite
http://www.geocities/gurrutello

then i want to replace the geocities, brinkster, yahoo & in the " show results page " make them appears like


http://www./mysite
http://www./yoursite
http://www./gurrutello

using a replace(""&request("url")&"")


ok??
I hope I explain better this time
Reply With Quote
  #4 (permalink)  
Old 07-30-03, 12:43 PM
exceller's Avatar
exceller exceller is offline
New Member
 
Join Date: Jun 2003
Location: Under the table & Learning
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
try this one

Well if you want to omit those strings
try this one

dim url
url=request.servervariables("http_referer")

replace(url,"http://www.yahoo.com","") ' replace the string with nothing
replace(url,'http://www.google.com","") ' ' replace the string with nothing

response.write(url)

etc etc..

hope that helps
__________________
I got the POWER! BOOM!

Last edited by exceller; 07-30-03 at 12:45 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
name@domain.com to name at domain dot com s10v8 ASP 2 09-27-03 08:12 AM
Date From Access 2000 Database Kaikki ASP 4 09-25-03 06:04 PM
mysql to access aspuser25 Database 2 09-16-03 11:01 AM
Looking for Registered Members area access to files .. script zamen Script Requests 3 09-02-03 05:44 AM
Define the domain name is near to expire khibinite The Lounge 0 08-21-03 12:46 PM


All times are GMT -5. The time now is 04:23 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.