Forum Moderators: phranque

Message Too Old, No Replies

Problem with mod_rewrite anti-hotlinking

It's not working

         

toonarific

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

10+ Year Member



A mutual friend <snip> suggested I speak to you regarding mod_rewrite. I am the essential newbie when it comes to .htaccess and mod_rewrite, so I need a complete walkthrough.

My server is running windows nt web server, and I need to know how in the world to find out where the mod_rewrite is even installed on the system, so I can move forward in creating .ntaccess files for some of my directories. Ive been working with <snip> trying to stop direct image linking, and when we try a test page, the images still appear. We figure this is because of the mod_rewrite. Where do I look, how do I find out, what do I do? ALL help is greatly appreciated.

[edited by: jdMorgan at 8:38 pm (utc) on Jan. 5, 2004]
[edit reason] Removed personal identification [/edit]

korkus2000

6:20 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you running apache on the server?

toonarific

7:03 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



Thats a good question. Its been so long since my 'installation of everything' phase, I dont remember everything I installed. Ill poke around and see if I can find any apache files or directories

toonarific

7:06 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



I found an Apache folder under lib in my perl directory. There are only 1 or 2 files in it though, so Im guessing that I dont have it installed. Ill download the software and install it, but not until I hear back from you. I wouldnt want to lose anything Ive already setup

korkus2000

7:10 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To use htaccess I believe you need apache running. You can load apache on windows. Hopefully someone more familar with apache is best to lead you through the install.

toonarific

7:36 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



Since I run everything from home, do you know of anyone who could help walk me through an install either on the boards or through email or something?

Longhaired Genius

7:53 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



If I wanted to get to where you want to be, I wouldn't start from where you are. Your task would be so much simpler if you could pay the relatively small cost of professional hosting on a Linux/Apache server.

jatar_k

8:14 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld toonarific,

You could try this.

[httpd.apache.org...]

jdMorgan

8:36 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



toonarific,

Welcome to WebmasterWorld [webmasterworld.com]!

First things first. Use this tool to find out what kind of server your site is hosted on: [webmasterworld.com...]

You should see "Apache" or at least "Apa" in the output if you're on Apache.

Jim

toonarific

8:37 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



for Longhaired Genius

why would I want to pay for someone to host my site, when I have my own server and my site is over 1 gig already, with another 60+ to grow into?

toonarific

8:39 pm on Jan 5, 2004 (gmt 0)

10+ Year Member



for jdmorgan

this is what I get:

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
X-Powered-By: ASP.NET
Cache-Control: no-cache
Expires: Mon, 05 Jan 2004 20:27:25 GMT
Content-Location: [removed for post]
Date: Mon, 05 Jan 2004 20:27:25 GMT
Content-Type: text/html
Accept-Ranges: bytes
Last-Modified: Thu, 01 Jan 2004 00:55:39 GMT
ETag: "80f724f91d0c31:c87"
Content-Length: 6009

korkus2000

8:42 pm on Jan 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you running ASP or ASP.Net on the site?