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:42 am Jun 18, 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
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
Quite quiet in here, anyone know why?
Most people don't read anymore
AdSense Earnings and Observations - June 2026
2025 Link Building Trends and Insights
How has AI changed your work?
IPad Seemingly Locked Onto One Product Page
Home
Forums Index
Server Side
/
Apache Web Server
3:42 am Jun 18, 2026