Skip to main content

Home/ Web Development, Design & Programming/ Group items tagged .htaccess

Rss Feed Group items tagged

Luciano Ferrer

Stupid htaccess Tricks * Perishable Press - 1 views

  •  
    "Stop Hotlinking, Serve Alternate Content To serve 'em some unexpected alternate content when hotlinking is detected, employ the following code, which will protect all files of the types included in the last line (add more types as needed). Remember to replace the dummy path names with real ones. Also, the name of the nasty image being served in this case is "eatme.jpe", as indicated in the line containing the RewriteRule. Please advise that this method will also block services such as FeedBurner from accessing your images."
anonymous

linux - .htaccess RewriteCond for REMOTE_ADDR while behind Load Balancer? - Server Fault - 1 views

  • RewriteEngine on RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.111 RewriteCond %{REQUEST_URI} !/maintenance.php$ [NC] RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] RewriteRule .* /maintenance.php [R=302,L]
  •  
    "writeEngine on RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.111 RewriteCond %{REQUEST_URI} !/maintenance.php$ [NC] RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] RewriteRule .* /maintena"
‹ Previous 21 - 40 of 107 Next › Last »
Showing 20 items per page