473,573 Members | 3,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to mask a url address for a web site.

Hi,

how to mask a url address for a web site.

Thanks,
Srinivas

Oct 22 '05 #1
7 40877
VK

srinivas wrote:
how to mask a url address for a web site.


What do you mean by that? Check if URL fits to some pattern template?

Oct 22 '05 #2
srinivas wrote:
how to mask a url address for a web site.


Perhaps you are looking for something like

var esc = (typeof encodeURICompon ent == "function"
? encodeURICompon ent
: (typeof escape == "function"
? escape
: function(x) { return x; }));

alert(esc("http ://foo.bar/baz"));
PointedEars
Oct 22 '05 #3
is it possible to "mask" a URL address?

The customer hosts the actual site (decc.com). The URL's they want
to use would list as follows:

www.decc.com/abcd

www.decc.com/blablabla

www.decc.com/someword

What we want to do is have the user type in the url listed (I made them
up) and have decc re-direct to our web pages.

the customer wants the url to show up on the address bar on Srini end
as listed above

Essentially we are mis-stating the url the user is actually on.
Obviously the user would be on a Srini address at the time they are on
the web landing page BUT the question is whether or not we can spoof
the address to show the url the user originally entered.

Oct 22 '05 #4
srinivas wrote:
is it possible to "mask" a URL address?

The customer hosts the actual site (decc.com). The URL's they want
to use would list as follows:

www.decc.com/abcd

www.decc.com/blablabla

www.decc.com/someword

What we want to do is have the user type in the url listed
(I made them up) and have decc re-direct to our web pages.


There are two possible ways I can think of:

1. Use a redirection frameset. It introduces several
disadvantages and is therefore strongly discouraged.

2. Do the redirection server-side, best using URL rewriting:
<http://httpd.apache.or g/docs/2.0/misc/rewriteguide.ht ml>

None of this has to do with programming JavaScript at all.
PointedEars
Oct 22 '05 #5
hai Thomas 'PointedEars' Lahn

thanks for responding to my message

What i need is if i enter www.google.com in the addressbar,then the
site should redirects to www.gmail.com/index.aspx page but we can see
www.google.com in the url address bar.

Thanks

Oct 24 '05 #6
srinivas wrote:
What i need is if i enter www.google.com in the addressbar,then the
site should redirects to www.gmail.com/index.aspx page but we can see
www.google.com in the url address bar.


Yes, both of my suggestions are applicable to achieve
this (if you're the owner of google.com, of course ;-)).
HTH

PointedEars
Oct 24 '05 #7
VK
> how to mask a url address for a web site.

As I'm currently in anti-IE mood for some reason :-), here's an IE-only
trick (FF is smart/secure enough for equivalents).
<html>
<head>
<title>URL Spuffing</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="JScri pt">
function spuffURL() {
var fakeBar = window.createPo pup();
fakeBar.documen t.body.innerHTM L =
'<span style="font: 8pt MS Sans Serif, sans-serif">' +
'http://www.google.com</span>';
fakeBar.show(70 ,-20,300,16,docum ent.body);
/* Of course the exact coords will vary greatly
depending on installed Explorer bars and screen resolution.
So it's a jeux d'esprit rather then an actual hack. */
}
window.onload = spuffURL;
</script>
</head>

<body bgcolor="#FFFFF F">
</body>
</html>

Oct 25 '05 #8

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

Similar topics

2
11896
by: RiGGa | last post by:
Hi, I am creating a form in php and one of the fields will be prompting the user to enter a time in the HH:MM format, is there anyway using php to create an input mask so it appears as __:__ Or is there a better way to do this? Many thanks
0
9107
by: Chandrashekar Tippur | last post by:
Pros, I was wondering if there is a API for generating ip address range from a given subnet mask (VLSM). Thanks, Shekar
7
7035
by: F. Michael Miller | last post by:
I have a db with Access front end, sql back, linked tables. I need to be able to change input masks at the table level in code. Any ideas? Thanks!
2
1898
by: Tai | last post by:
Hi all, I have an ASP.NET web project that requires some mask control for entering Birthday, SSN, Phone number. I searched on Google and found some mask controls that worked very well on IE. But with Mozilla they did not work. Any body have any idea about these controls, or know where can i find it? And i wonder if we can write these controls...
7
2276
by: Marcelo | last post by:
Hi, Is there anyway that I can mask a website?, I want to hide some fields, I was thinking to make that with a php based robot but the problem is that the website that I want to mask is javascript. Can php fill javascript forms? thanks for your help
1
2502
jaymanson
by: jaymanson | last post by:
Does anybody know of any method or existing script I can use to mask the address of a page. For example, if I am on www.mysite.com and I click on a link which redirects to a page hosted on a free hosting site, eg www.freehost.com/johndoe/content.htm, can the address shown in the browser be masked so it still looks like the page originates from...
5
3613
by: mtgrizzly52 | last post by:
First thing, because of you all and this web site, I am building a first class time saving database for my fellow workers to use. My really dumb questions is this. I have a control in a subform that is in the second position in terms of all the controls in the form. When entering the subform via a toggle button, the focus is set on the first...
7
3493
desklamp
by: desklamp | last post by:
I'm a total Access newbie, please bear with me! Using Win2K/Access 2003. I'm trying to create a table in which I can store IP addresses and other information. According to Microsoft, there is no native way of converting an IP address to an integer/long number (which is much more efficient to index and search). After searching, I found a...
2
3084
by: nussu | last post by:
Hi , I need to find a subnet mask number for a given IP Address number. I have two textbox's once enter the ip address in first textbox i need to get subnet mask number for that ip address in second textbox. Please help me by providing links or c#.net code. Thanks in Advance. Regards, Nussu
0
7778
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7777
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6413
agi2029
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...
1
5585
isladogs
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...
0
5290
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...
0
3731
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...
1
2203
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1300
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1039
bsmnconsultancy
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...

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.