when I paste the URL of image
I assume you mean when you paste the URL directly into the browser’s address bar, as I can’t think you’d be pasting it anywhere else. (?)
If that is the case then the behaviour you are seeing is correct – the browser should show the image. This isn’t really “hotlinking”, this is a direct request. You can’t realistically block direct requests (when the HTTP Referer is empty) as you could end up blocking these images for real users of your site that don’t send the HTTP Referer header as part of the request.
The following condition is what allows this request to happen:
RewriteCond %{HTTP_REFERER} !^$
ie. When the HTTP_REFERER
is not empty.
ASIDE: You’ve tagged your question “multisite”, however, you appear to have both sets of code in your .htaccess
file: standard single-site and multi-site? The single-site code is first, so this is what’s “winning”.
Related Posts:
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- multisite 404 error for subdirectory
- Multisite htaccess on localhost with WP as an SVN external?
- WP-Admin not working properly at WordPress multisite with subdirectories
- Multisite Subdomains result in 403 Forbidden
- WordPress Multisite – Multiple subfolders for blogs
- Multisite: Develop locally using production images with .htaccess
- multisite htaccess 301 redirects
- Multisite wordpress and subdomain URL collisions
- Error 101 after upgrading WordPress
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Protect Uploads in Multisite
- Basically the opposite MultiSite URL question that most people ask
- Domain redirect in WordPress multisite
- Suppress subdirectory from WordPress Multisite primary URL
- 500 error when using virtual host
- WordPress Multisite Login Access
- Why wordpress multisite redirect to wp-signup if site exists?
- WordPress multisite htaccess
- Multisite without .htaccess
- .htaccess 301 vs. 302 Enforcing HTTPS
- Sub-subdomain getting redirected to main domain
- Members area with externally-managed htaccess / htpasswd authentication?
- How to properly force https and www on multisite with Apache HTAccess
- wordpress htaccess is hijacking my .mp4 files
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- WordPress mutisite migration
- Dissolve Multisite while making site #5 the main site?
- How to disable the default WordPress redirect to non-www URLs?
- Create rewriterules for different domains in htaccess file with WP multisite
- WordPress multisite in subdirectory, not root, and remove base folder from url
- Issue with htaccess redirection in WP Multisite
- Multisite installation not in root – how to make live?
- Redirect only posts to New Domain
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- add_rewrite_rule on multisite doesn’t work
- Temp URL Redirect Loop
- Error uploading files bigger than 58 MB
- Multisite – 404 when accessing sub-sites
- WordPress Multisite’s in subdirectory not redirecting to dashboard settings
- .htaccess rules for blocking bots with an extra condition
- Wrong Redirect/Rewrite Rules?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- What happens if I use .htaccess of network multisite on a single site installation?
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- Wrong filepaths and admin page infinite reload after migrating to aws bitnami
- WordPress multisite .htaccess causes 500 error on old *.php URLs
- URL without www redirect directly with submission page – Multiwordpress install
- Multisite Redirection to new domains
- Multisite Subdirectory with same domain subdomain
- Run additional service on domain with WordPress Multisite?
- Redirect old uploads after moving to multisite
- WordPress sub-domain multisite 505 error
- Redirect to localhost after installing Multisite on server
- WordPress: how to change URL for individual MultiSites?
- Multisite Create Site not working
- How to host unrelated pages on WordPress domain
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- URL for images folder on Multisite
- Multisite install w/ Sub domains on a subdomain
- Multisite Subdomain Redirect Mask
- Help with multisite redirect issues using Cherokee OR solid nginx config?
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- Multisite Sub domains not working
- Missing images after moving servers
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- Multisite Subdirectory Site Dashboard redirect loop
- 404 not working on main site on multisite
- Working with Reverse Proxies and Multisite Installation
- WordPress Multisite and how to apply sef urls only to specific sites
- How many .htaccess files should a WordPress multisite (subdirectory set up) have?
- How to fix redirection of Post/Page of wordpress inside the wordpress?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- multisite 404 subfolder same name slug as site
- Rewriting request to another site
- Getting file errors in a WordPress Multisite ADMIN
- How to make the redirects right? IP to domain name folders
- WP Multi Site – configure Sub domain pointing to parent sub directory
- Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?
- trying to install a wordpress multisite in a subfolder and have custom subsite urls
- Events Calendar Multisite 404 for events
- Multisite htaccess with domain rewrites
- Multisite issue
- Can’t access 2nd site (sub) dashboard of WordPress Multisite
- Nginx rules for subdomain multisite install (Bedrock)
- Multisite /files/ URLs broken after server move
- How To Change the URL of a WordPress Multisite
- Multisite, different domains, optional subdirectory, and htaccess
- WP Multisite .htaccess interferes with cgi-bin
- Redirect extra url to Multisite in folder
- No input file specified after enabling multi site
- How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?
- Permalinks in Multisite not working
- Multisite website configure Domain issue
- External rewrite rules missing in htaccess – Multisite
- 404 error in dashboard of subdomain of multisite