Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. [MyDomain]/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,jquery-ui-draggable,jquery-touch-punch,iris,wp-color-picker,admin-bar,thickbox,heartbeat,autosave,wp-ajax-res&load%5B%5D=ponse,jquery-color,wp-lists,jquery-query,admin-comments,suggest,postbox,tags-suggest,tags-box,word-count,post,editor-expand,shor&load%5B%5D=tcode,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,media-upload,jquery-ui-datepicke&load%5B%5D=r,editor,wplink,wp-embed&ver=4.7.2
  2.  
  3. <script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(2, 10);});</script>
  4.  
  5. # POST requests and urls with a query string should always go to PHP
  6. if ($request_method = POST) {
  7. set $skip_cache 1;
  8. }
  9. if ($query_string != "") {
  10. set $skip_cache 1;
  11. }
  12.  
  13. # Don't cache uris containing the following segments
  14. if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") {
  15. set $skip_cache 1;
  16. }
  17.  
  18. # Don't use the cache for logged in users or recent commenters
  19. if ($http_cookie ~* "wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") {
  20. set $skip_cache 1;
  21. }
  22.  
  23. location / {
  24. try_files $uri $uri/ /index.php?$args;
  25. }
  26.  
  27. location ~ .php$ {
  28. include snippets/fastcgi-php.conf;
  29. fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  30.  
  31. fastcgi_cache_bypass $skip_cache;
  32. fastcgi_no_cache $skip_cache;
  33.  
  34. fastcgi_cache WORDPRESS;
  35. fastcgi_cache_valid 60m;
  36. }
  37.  
  38. location ~ /purge(/.*) {
  39. fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1";
  40. }
  41.  
  42. location ~* ^.+.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
  43. access_log off; log_not_found off; expires max;
  44. }
  45.  
  46. location = /robots.txt { access_log off; log_not_found off; }
  47. location ~ /. { deny all; access_log off; log_not_found off; }
  48.  
  49. location ~ /.ht {
  50. deny all;
  51. }
  52.  
  53. location ~ /.well-known {
  54. allow all;
  55. }
  56.  
  57. # Stop php access except to needed files in wp-includes
  58. location ~* ^/wp-includes/.*(?<!(js/tinymce/wp-tinymce)).php$ {
  59. internal;
  60. }
  61.  
  62. # no access to wp-config.php
  63. location = /wp-config.php {
  64. deny all;
  65. }
  66.  
  67. # no access to php files inside an uploads or files folder
  68. location ~* /(?:uploads|files)/.*.php$ {
  69. deny all;
  70. }
  71.  
  72. # no access to files inside wp-content with various types
  73. location ~* ^/wp-content/.*.(txt|md|exe|sh|bak|inc|php|pot|po|mo|log|sql)$ {
  74. deny all;
  75. }
  76.  
  77. # no access to root folder, .htaccess, or .svn files or folders
  78. location ~ /.(ht|svn)? {
  79. deny all;
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement