SunQuest
           Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old May 1st, 2007, 12:47 AM
simora simora is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 12 simora User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 28 m 10 sec
Reputation Power: 0
Mod rewrite sample code

Need some sample code to change a URL presented to the user to show www.someurl.net/do.jsp whenever they go to www.myurl.com

This is presenting a fake url to specific users who type a url directly into the browser. Is this possible and is this a useful protection tool .

Also, how can you code isset to check if they typed a url into the browser rather than comming from a specific page. I could use some strong bulletproff session code as an example.

Thanks

Reply With Quote
  #2  
Old September 10th, 2007, 05:45 AM
rbrown rbrown is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 74 rbrown User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 19 m 14 sec
Reputation Power: 2
well you could mod your 404 page to this:

Code:
<!--#include virtual="redirect.php" -->


use the complete line and spacing.

Or can be redirect.html

then use

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://where_ever.com">
</head>
<body>
</body>
</html>


for your redirct page.

So no matter what they type in it will send them to http://where_ever.com unless of course it is an actual page on your site.

As far as protection... use should always use .htaccess or an index page with a redirect to your domain main page.
__________________
Bob

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Mod rewrite sample code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway