Rewrite, but only if directly accessed?

New to mod_rewrite? This is a good place to start.

Rewrite, but only if directly accessed?

Postby JosieNutter » Sat Apr 30, 2005 6:19 pm

I am a total mod_rewrite newbie, and I'm trying to figure out how to do something ... IF it CAN be done.

Let's say I have a file.

An embedded plugin calls this file by name.

Since there is no real way to disable viewing source, I want to use a "decoy" filename. Something that doesn't really exist.

If the plugin requests it, I want it to give it the real one, but if someone tries to go to the URL directly, they get nothing.

Is this possible?
User avatar
JosieNutter
 
Posts: 1
Joined: Sat Apr 30, 2005 6:13 pm
Location: San Francisco

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 10 guests

cron