Forum Moderators: open
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
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.
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
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>
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