Is it possible to make use of my personal /etc/passwd file for website authentication?

Is it possible to make use of my personal /etc/passwd file for website authentication?

  • The net technology supplies no governors on how frequently or exactly how fast password (authentication problem) retries can be produced. This means that someone can hammer away at your system’s underlying password online, using a dictionary or similar mass approach, just as fast due to the fact wire along with your servers can handle the demands. Most operating systems these days incorporate combat recognition (instance n were unsuccessful passwords for similar account within m mere seconds) and evasion (breaking the connections, disabling the accounts under assault, disabling all logins from that supply, et cetera), however the Web doesn’t.
  • A free account under combat isn’t informed (unless the server is seriously altered); there’s no “You have 19483 login failures” message once the genuine proprietor logs in.
  • Without an exhaustive and error-prone study of the machine logs, you cannot determine whether an account has been affected. Discovering that an attack have happened, or is beginning, is fairly obvious, though – should you dÄ›lá victoria milan práce consider the logs.
  • Web authentication passwords (at the least for Basic authentication) normally travel over the cable, and through advanced proxy programs, with what figures to basic book. “O’er the net we go/Caching right;/O just what enjoyable it is to surf/Giving my personal code away!”
  • Since HTTP was stateless, details about the verification try carried each time a demand is built to the server. In essence, the consumer caches it after the earliest successful accessibility, and transmits they without asking for all following demands to the same host.
  • It really is fairly unimportant for anyone in your program to put up a full page which will take the cached code from litigant’s cache without them knowing. Can you state “password grabber”?

Should you decide still would like to do this in light on the above negatives, the strategy are remaining as a fitness for audience. It will invalidate their Apache guaranty, though, and you’ll drop all built up UNIX expert points.

How does Apache ask for my personal code twice before providing a file?

If the hostname under that you become opening the host varies than the hostname specified inside the ServerName directive, subsequently depending on the setting of UseCanonicalName directive, Apache will redirect you to definitely a fresh hostname when creating self-referential URLs. This happens, for instance, in the case the place you inquire a directory without such as the trailing slash.

At these times, Apache will require authentication once according to the original hostname, perform the redirect, and then inquire once more within the brand-new hostname. For security causes, the browser must remind once more for any password whenever number label improvement.

  • Always utilize the trailing slash when asking for sites;
  • Replace the ServerName to complement title you are using for the URL;
  • and/or Ready UseCanonicalName down.

How can I prevent folks from “stealing” the images from my site?

The aim is avoiding people from inlining the graphics right from their own site, but accessing all of them on condition that they show up inline within content.

This is often accomplished with a mixture of SetEnvIf as well as the Deny and invite directives. But is essential to appreciate that any accessibility constraint in line with the REFERER header is actually intrinsically difficult due to the fact that browsers can deliver an inaccurate REFERER, either because they would you like to circumvent your limitation or because they do not send the right thing (or anything at all).

Where can I get a hold of mod_rewrite rulesets which already resolve particular URL-related troubles?

Discover a collection of practical assistance available from inside the Address Rewriting manual. For those who have most interesting rulesets which solve certain troubles maybe not currently sealed contained in this document, open a doc advice in bugzilla to add they. The other site owners will thanks for steering clear of the reinvention of wheel.

Comments are closed.