What this does is adding far future expires header (make sure mod. Compress Components Compressing things always ends up making them smaller and. I'm not sure if this is what you wanted, but this is a very hackish way to include php. What you do is you put the php you want to run in another file, and then you include that file in an image. For example: RunFromHTML.php <?php $file = fopen('file.txt', 'w. Zugriffsschutz - mit Ausnahme <Files '*.*'> Deny from all </Files> <FilesMatch '\.(js. Quand faut-il l’utiliser? Bien souvent le mieux c’est de ne pas l’utiliser! Bon alors, il ne sert ? Quand vous avez la main sur les fichiers principaux de configuration d’un serveur apache (httpd.conf entre autre) et uniquement dans ce. When people are asked about features they would like to CSS, 'variables' always seems to come up. Whether or not this is a good idea is still something I p. Tour Start here for a quick overview of the site Help Center Detailed answers to any. I have just downloaded the latest release today and the glyphs do not show if I use the minimized CSS file. If I use the 'normal' bootstrap.css everything works fine. Deny All Access Except Yours (Only allow certain IPs) with.htaccess perm link Use this to ONLY allow certain IP addresses to access your website. Apache 2.2 Order deny,allow Deny from all Allow from xxx.xxx.xxx.xxx Apache 2.4 # Require all denied # Require. ![]() Just plain HTML (and a . Coming here and a quick cmd+f/ctrl+f should be faster than finding the answer on stackexchange : ) Also check out our PHP's Dom. Document Cheatsheet. Remember that for most rules you must have the Rewrite. Engine on rule in your . Please remember to double check and verify any rules that you use. If you do not understand a rule please consult someone who does. We accept no responsibility for your use of these rules - use them at your own risk. Please get in touch if you want us to add a rule!(Note: It is assumed that you have `mod. The first line should be 'Rewrite. Engine on' to enable this)Rewrite. Cond %. Source. It's stillopenfordebate whether www or non- www is the master race, so if you happen to be a fan or bare domains, here you go: Rewrite. Engine on. Rewrite. Cond %. It allows web servers to declare that web browsers (or other complying user agents) should only interact with it using secure HTTPS connections, and never via the insecure HTTP protocol. HSTS is an IETF standards track protocol and is specified in RFC 6. It's good if you want baz. Use the following . Redirect 3. 01 / http: //newsite. This way does it with links intact. That is www. oldsite. This is extremely helpful when you are just . Apache 2. 2: Deny from all. Apache 2. 2: # Require all denied. This will stop you from accessing your website. If you want to deny all access but still be able to view it yourself please read the next rule: Use this to ONLY allow certain IP addresses to access your website. Apache 2. 2. Order deny,allow. Allow from xxx. xxx. Apache 2. 4# Require all denied. Require ip xxx. xxx. IP. If you replace the last three digits with 0/1. IPs within the same network, thus saving you the trouble to list all allowed IPs separately. Source. Please see the next rule for the 'opposite' of this rule! This will allow access to all IPs EXCEPT the ones listed. You can use this to allow all access Except Spammer's IP addresses. Replace xxx. xxx. IP addresses you want to block. Apache 2. 2. Order deny,allow. Deny from xxx. xxx. Deny from xxx. xxx. Apache 2. 4# Require all granted. Require not ip xxx. Require not ip xxx. Use this . htaccess rule to block/ban certain user agents. Rewrite. Cond %. For example: . Rewrite. Cond %. You could use this to stop . Index. Ignore *. zip *. Rewrite. Engine on. Rewrite. Cond %. Run the following command at the command line: htpasswd - c /home/hidden/directory/here/. In your . htaccess file you need something like the following code, but make sure the Auth. User. File is the file path to the . You should keep the . So don't put it in your /public. It is advisable to set static content's expires headers to something far in the future. If you don't control versioning with filename- based cache busting, consider lowering the cache time for resources like CSS and JS to something like 1 week. Source< If. Module mod. Source< If. Module mod. See here for a conversion tool. The code below limits it to 1mb. Limit. Request. Body 1. Change 5. 55. 5. 55. IP, and Your. Maintenance. Page. Filename. Or. Full. Url. Url. html to your error page (or a whole URL, on a different domain). Error. Document 4. Your. Maintenance. Page. Filename. Or. Full. Url. Url. html. Order deny,allow. Allow from 5. 55. Sometimes you want to force the browser to download some content instead of displaying it. The following snippet will help.< Files *. Force. Type application/octet- stream. Header set Content- Disposition attachment. While many people consider this pointless (especially with regards to security), if you want to stop your server from giving away server info (the sever OS etc), use this: Server. Signature Off. Sometimes you want to force the browser to display some content instead of downloading it. The following snippet will help.< Files. Match . The following snippet from alrra should make it happen.< If. Module mod. You can also swap the utf- 8 for another character set if required: # Use UTF- 8 encoding for anything served text/plain or text/html. Add. Default. Charset utf- 8. Force UTF- 8 for a number of file formats. Add. Charset utf- 8 . Source. Set. Env TZ UTC. See a list of time zones here. To set it to Los Angeles time zone: Set. Env TZ America/Los. For example, Laravel requires PHP > = 5. The following snippet should switch the PHP version for you. Add. Handler application/x- httpd- php. Alternatively, you can use Add. Type. Add. Type application/x- httpd- php. Disable Internet Explorer Compatibility View. Compatibility View in IE may affect how some websites are displayed. The following snippet should force IE to use the Edge Rendering Engine and disable the Compatibility View.< If. Module mod. It is all on one page, and optimised to help it quickly load and for you to easily find the . Please get in touch if you have any questions. We will soon offer this page as a pdf download. Refer to Unlicense.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |