Web Hosting Talk







View Full Version : mod_rewrite question


hostwindsor
08-25-2005, 05:13 PM
Hey,

We run a proxy site, and we're having problems with people hotlinking images. I would like to prevent this with mod_rewrite but due to the URL conversion it is a problem.

In our setup I need to block URLs that have the following at the END of them:

[list=1]
2e6a7067
2e6a706567
2e676966
2e706E67
2e626D70
[/list=1]

Any help would be greatly appreciated.

Thanks!

extras
08-29-2005, 06:52 PM
For mod_rewrite questions, you should show more info.

In general, entire setup (.htaccess of all directories concerned,
httpd.conf if accessible, directory structure, and so on.)
In case of problem, error log & access log entries,
failing URL patterns, expected result and what you are getting.


In your case, it's important to show if the part you are talking is in QUERY_STRING or directory/filename portion.

And the word "Hotlinking" suggests that maybe you are talking about
HTTP_REFERER instead of URL.
If so, you should know that many browsers do not send REFERER info, these days,
and it's not going to be 100% effective.