Forum Moderators: open

Message Too Old, No Replies

Link Cloaking plus forward mask, plus plus

         

Just4Tricks

6:40 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



First, I want to say that I have found many tips and tricks here and you guys have been most helpful. I have never needed to post because someone has always had the same question and it was answered in a short time. I am not a professional webmaster, just trying to learn.

Here is what I am trying to accomplish.

1st trick, I need not only to cloak certain links on my page, but also need to mask them so that the browser window of the viewer reads the site address that I want him to see. How can I do this?

2nd trick, I want to restrict certain websites from linking into my .html webpages, or entire website. I did read something here where this code was used for this;

SetEnvIf Referer ^http://.*\guestbook\.com ban
<Files *>
order deny,allow
deny from env=ban
</Files>

If this works for the 2nd trick, where do I place this code and what kind of code is it?

Thanks,
J4T

korkus2000

11:59 pm on Jan 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the board,

Your first question seems like you are asking about status bar javascript. You can do this by adding this to the anchor tag.

onmouseover="window.status='http://www.siteyouwanttoshowatthebottom.com'; return true" onmouseout="window.status='Done'; return true"

The second part I believe would go in your htaccess file. You need to have a host that runs apache and allows you to edit this file.

Just4Tricks

1:18 am on Jan 5, 2004 (gmt 0)

10+ Year Member



Thanks Korkus2000,

I do understand how to clone the script you supplied is simular to what I am using now;

<a href="http://www.truesite.com" onmouseout="window.status='';return true" onmouseover="window.status='http://www.shownonstatusbar.com';return true">What will show on webpage</a>

I not only want to clone the link on the orginating website, but I want to mask what the browser will display in the window as well.

If I am cloaning the link I would want the same clone address to appear in the browser bar once they arrive at the website I am sending them too so that the site is masked.

J4T

Just4Tricks

1:36 am on Jan 5, 2004 (gmt 0)

10+ Year Member



Also this is my .htaccess file at present,,,changed to www.example.com for display on this board.

My question is where to put the code from above so it works or how to change this....What should it read?

Thanks Again
J4T

# -FrontPage-

IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
#The next line modified by DenyIP
order allow,deny
#The next line modified by DenyIP
#deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.example.com
AuthUserFile /home/example1/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/example1/public_html/_vti_pvt/service.grp

<Files 403.shtml>
order allow,deny
allow from all
</Files>

Just4Tricks

3:48 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



I thought someone could tell me where or how to place this code into the above htacess file.

SetEnvIf Referer ^http://.*\guestbook\.com ban
<Files *>
order deny,allow
deny from env=ban
</Files>

I'd really like to know if it goes in just as it is and can it go anywhere?

Thanks

J4T

korkus2000

4:16 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should ask your question inour apache [webmasterworld.com] forum. There are lots of knowledgable people who can let you know how to do it.

aviancer

5:11 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



Tricks,

For your first question about importing remote HTML, I would use PHP, and just do the following in a page on your site:

<?php
include( "http://www.remotesite.com/remotepage.html");
?>

That will cause PHP to run out to the other site and import the HTML.

Similar tricks can be done using Perl CGI and even shell scripting. As a simple example, consider the following (requires Perl LWP):

=== CUT HERE ===
#!/bin/sh
GET $1
=== CUT HERE ===

Name it as .../cgi-bin/grab.cgi, and use the following in a link:

<a href="/cgi-bin/grab.cgi?http://www.there.com/there.html">there.html</a>

Cheers