Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
Apache Web Server
3:05 pm May 21, 2026
This page requires javascript.
Forum Moderators:
phranque
Message Too Old, No Replies
Protect download file
webstyler
Msg#:4351994
1:30 pm on Aug 16, 2011
(gmt 0)
Hello
What I need is to deny download file from any IP but permit usage is request is not direct from user
so
If user open page the file can be called from page, server side
If user open the file link can't be download it
Possible ?
tx
phranque
Msg#:4352357
7:15 am on Aug 17, 2011
(gmt 0)
you can
Detect blank referrer in RewriteCond
:
http://www.webmasterworld.com/apache/3391260.htm
[webmasterworld.com]
however, beware that some visitors will have a configuration that blocks the HTTP Referer header.
so effectively with a blank or spoofed Referer you can't really determine if it is a direct or (self-)referred request.
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
May 2026 Google Search Observations
AdSense Earnings and Observations - May 2026
AI visibility audit
Adsense / Personal Manager / Support
Hacker spoofing as GoogleBot
Page indexed but live url test gets 500 error
Link collaboration strategies
in case you missed it .
Microsoft, AS8075. Google, AS396982.
Bad actor claiming to be OpenAi
Home
Forums Index
Server Side
/
Apache Web Server
3:05 pm May 21, 2026