Using IIS 10 (PHP yes) what is the best practice for allowing iframes of a site?

I have a W2016 server with IIS 10 running on it and I am having problems implementing policy (used to apache) on how to add in the correct headers for Content Security Policy/CORS/X-frame. It seems that IIS has gone out of its way already to add SAMEORIGIN by default, as I don’t see it listed anywhere (the server or the site in question).

So what is the best way to ensure that mysite.example.com can be iframed into any site and also if I want to lock down iframing can I have a policy to allow iframing on the wildcard of the root – so *.example.com.

site collection – How do I acquire a single SharePoint page in PowerQuery?

This page – Site Contents – would be really useful to me:

https://……sharepoint.com/sites/……/……/_layouts/15/viewlsts.aspx?view=14

I want to pull this table into a excel sheet by means of PowerQuery, but when I try “Get Data” from the web address, I’m steered towards using a SharePoint Connector which won’t let me access that page.

How else could I do it?

What is the best SEO strategy to get my site rank top 10

Advertising

y u no do it?

Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

Starts at just $1 per CPM or $0.10 per CPC.

drush – Deadlock on Semaphore table results intermittent service denial of the site

Experience deadlock on Semaphore table frequently, which result in service denial of the site.

Site configuration

  • Drupal version : 8.8.6
  • Apache version: Apache/2.4.46 PHP 7.2.33
  • Drush version : 10.3.1
  • MySQL Database (AWS RDS 8.0.20, with Multi-AZ and backup enabled)
  • 2 CMS nodes configured to use same drupal file system with EFS

The site is under normal traffic & it is observed that without traffic also this issues exists. It is observed that during cache reload using Drush (drush cr) the issue is consistent. Even after restarting the cms nodes, without any traffic the issue occurs. During the issue time the php-fpm active threads are in blocked state, so it cannot serve any request from Apache server.

PHP-FPM Thread count

(root@ip-xx-xx-xx-xx bin)# systemctl status php-fpm
● php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2021-04-20 16:59:08 JST; 29min ago
 Main PID: 3135 (php-fpm)
   Status: "Processes active: 50, idle: 0, Requests: 96, slow: 0, Traffic: 0req/sec"
   CGroup: /system.slice/php-fpm.service
           ├─3135 php-fpm: master process (/etc/php-fpm.conf)
           ├─3139 php-fpm: pool www
           ├─3140 php-fpm: pool www
           ├─3141 php-fpm: pool www
           ├─3142 php-fpm: pool www
           ├─3143 php-fpm: pool www

Error from php-fpm

"at /xxx/xxx/xxx/applns/drupal/st/core/lib/Drupal/Core/Database/Connection.php line 695
(20-Apr-2021 16:17:52 Asia/Tokyo) DrupalCoreDatabaseDatabaseExceptionWrapper: SQLSTATE(40001): Serialization failure: 1213 Deadlock found when trying to get 
lock; try restarting transaction: INSERT INTO {semaphore} (name, value, expire) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array
(
    (:db_insert_placeholder_0) => locale:ja::anonymous:DrupalCoreCacheCacheCollector
    (:db_insert_placeholder_1) => 992790133607e8016bd90d6.01860943
    (:db_insert_placeholder_2) => 1618903102.1116
)
 in /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/Cache/CacheCollector.php on line 233 #0 /xxx/xxx/xxx/applns/drupal/st/core/lib/Drupal/Core/Database/Connection.php(659): DrupalCoreDatabaseConnection->handleQueryException(Object(PDOException), 'INSERT INTO {se...', Array, Array)
#1 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php(357): DrupalCoreDatabaseConnection->query('INSERT INTO {se...', Array, Array)
#2 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/Database/Driver/mysql/Insert.php(32): DrupalCoreDatabaseDrivermysqlConnection->query('INSERT INTO {se...', Array, Array)
#3 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/Lock/DatabaseLockBackend.php(77): DrupalCoreDatabaseDrivermysqlInsert->execute()
#4 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php(75): DrupalCoreLockDatabaseLockBackend->acquire('locale:ja::anon...', 30)
#5 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/Cache/CacheCollector.php(233): DrupalCoreProxyClassLockDatabaseLockBackend->acquire('locale:ja::anon...')
#6 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/Cache/CacheCollector.php(327): DrupalCoreCacheCacheCollector->updateCache()
#7 /xxxx/xxxx/xxxx/applns/drupal/st/core/modules/locale/src/LocaleTranslation.php(150): DrupalCoreCacheCacheCollector->destruct()
#8 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Core/EventSubscriber/KernelDestructionSubscriber.php(51): DrupallocaleLocaleTranslation->destruct()
#9 (internal function): DrupalCoreEventSubscriberKernelDestructionSubscriber->onKernelTerminate(Object(SymfonyComponentHttpKernelEventPostResponseEvent), 'kernel.terminat...', Object(DrupalComponentEventDispatcherContainerAwareEventDispatcher))
#10 /xxxx/xxxx/xxxx/applns/drupal/st/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(SymfonyComponentHttpKernelEventPostResponseEvent), 'kernel.terminat...', Object(DrupalComponentEventDispatcherContainerAwareEventDispatcher))

We applied transaction_isolation to READ_COMMITTED for MySQL connection, but the issue occurs again.

Currently we changed the semaphore table to MEMORY Engine and found that the issues frequency reduced. But during the load testing the issue reproduced.
We are facing the issue in our Production site, so any help will be highly appreciated.

Auto Insurance site with 119k backlinks for only $100

Advertising

y u no do it?

Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

Starts at just $1 per CPM or $0.10 per CPC.

Why I don’t see the list of directories in my FTP site in IIS?

I created an FTP site. I set anonymous access to true, and I enabled anonymous authentication.

I checked it using Windows Explorer on my server and I could see the list of my directories using this addresses:

ftp://host:port/
ftp://ip:port/

However, I can’t see the content of my FTP in FileZilla. And here is the log:

Status: Resolving address of DOMAIN
Status: Connecting to IP:PORT...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is current directory.
Command:    TYPE I
Response:   200 Type set to I.
Command:    PASV
Response:   227 Entering Passive Mode (...).
Command:    LIST
Response:   150 Opening BINARY mode data connection.
Error:  Connection timed out after 20 seconds of inactivity
Error:  Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of nefcanto.ir
Status: Connecting to IP:PORT...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is current directory.
Command:    TYPE I
Response:   200 Type set to I.
Command:    PASV
Response:   227 Entering Passive Mode (...).
Command:    LIST
Response:   150 Opening BINARY mode data connection.
Error:  Connection timed out after 20 seconds of inactivity
Error:  Failed to retrieve directory listing

I’m stuck at this point. What is wrong?

I use Windows Server 2012 R2 and IIS 8.

sharepoint online – Site Design that can run Apply-PnPProvisioningTemplate?

Trying to setup easy process for client to rollout Sharepoint sites using GUI ‘Site Designs’ feature. General task I am trying to accomplish is this: Want to make custom Site Design where sitescripts can apply branding, HUB association, Theme, etc. Then want the custom site design to apply a PnP Provisioning Template (which would be an already uploaded .pnp file), which would build out the footer links, create a templated home page, and even upload some image assets.

I have created a ton of custom site designs and also have a good process for creating and then applying the .pnp file. Separately, these work fine. The issue, however, is to create the ‘content’ side of this ‘2 part’ rollout site. The site design portion is very user friendly and would give the client an easy (infallible) way to quickly make a new communications site with everything they want. In order to include the pre-configured home page or the footer links they want standardized, though, I need to run a PowerShell command to ‘apply-pnpprovisioningtemplate’, and I would like to be able to ‘run this command’ automatically with the site design.

I am not a PowerShell expert, but have some ideas that I am literally pulling out of thin air that I wanted to see if had any merit?

Through an additional sitescript in the site design, is there a way to run PnP cmdlets (similar to a .ps1 file) where it could run the ‘Connect-PnPOnline’ cmd & ‘Apply-PnPProvisioningTemplate’?

We have no Azure hosting plan so can’t use that, but could something be done with PowerAutomate?

Sharepoint 2019 site navigation breadcrumb shows incorrect URL on application pages

I have enabled the navigation breadcrumb in the master page of my site in Sharepoint 2019. When I navigate to a library inside a sub site and verify the URL on AllItems.aspx page it shows the correct url but when I navigate to the library settings page and verify the url in the same breadcrumb it only shows the url of the parent site and does not include in the URL of the subsite and the library (incorrect URL).

This behaviour is seen on all application pages only where it shows the URL of the parent site like this
http://<parent/ top level site_url>/_layouts/15/listedit.aspx?List=%7B%7D

When we click on this link it returns an error page.

enter image description here

plugins – Help needed re hacked site

Having trouble finding the following embedded code that iThemes is reporting. I have checked all folders on the server, as well as going through the database.

Invalid IP returned: <!DOCTYPE html> <html lang="en"> <head><script>function requestLink(){return { sessionId:('sid','t3~u1jfvuwbohl33vtcqqfi31wf') };}</script> <meta charset="UTF-8"> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta content="width=device-width, initial-scale=1" name="viewport"> <title id="title">It's better than Tinder!</title> <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,700|Raleway:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link href="/media/dating/tinder2/css/bootstrap.min.css" rel="stylesheet"> <link href="/media/dating/tinder2/css/style.css" rel="stylesheet"> <link href="/media/dating/tinder2/css/animate.css" rel="stylesheet"> <link href="/media/dating/tinder2/css/vegas.css" rel="stylesheet"> <script src="/media/dating/tinder2/js/jquery.js"></script> <script src="/media/dating/tinder2/js/vegas.js"></script> <script src="/media/dating/tinder2/js/jquery.countdown.js"></script> <script type="text/javascript" src="/cookie/js.cookie.js"></script> <script type="text/javascript" src="/media/dating/tinder2/js/trls.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { translate(); }); </script> <script type="text/javascript" src="/util/utils.js"></script> </head> <body id="home"> <div class="container"> <div class="row nav-wrapper"> <div class="col-md-12 col-sm-12 col-xs-12 text-center"> <a href="#"><img alt="Tinder" src="/media/dating/tinder2/images/logo-white2.png"></a> </div> </div> <div class="row hero-content text-center"> <div class="col-md-6 col-md-offset-3 wowload fadeInRight"> <div class="spacer"></div> <div class="content"> <div class="clock"> 04:59 </div> <h1 id="text01">It's better than Tinder!</h1> </div> <div class="step"> <p id="text02">Are you looking for a men or a women?</p> <a class="learn-btn animated fadeInUp step_button_1 next" href="javascript:void(0)"><span id="text03">Men</span></a> <a class="use-btn animated fadeInUp step_button_2 next" href="javascript:void(0)"><span id="text04">Women</span></a> </div> <div class="step" style="display:none;"> <p id="text05">What's your gender?</p> <a class="use-btn animated fadeInUp step_button_2 next" href="javascript:void(0)"><span id="text06">Men</span></a> <a class="learn-btn animated fadeInUp step_button_1 next" href="javascript:void(0)"><span id="text07">Women</span></a> </div> <div class="step" style="display:none;"> <p id="text08">Are you older than 18 years?</p> <a class="use-btn animated fadeInUp step_button_2 next" href="javascript:void(0)"><span id="text09">Yes</span></a> <a class="learn-btn animated fadeInUp step_button_1 next" href="javascript:void(0)"><span id="text10">No</span></a> </div> <div class="step" style="display:none;"> <p id="text11">Do you agree to use a condom when having sex with a partner you meet on our site?</p> <a class="use-btn animated fadeInUp step_button_2 next" href="javascript:void(0)"><span id="text12">Yes</span></a> <a class="learn-btn animated fadeInUp step_button_1 next" href="javascript:void(0)"><span id="text13">No</span></a> </div> <div class="step" style="display:none;"> <p id="text14">You may now see our list and photos of women who are in your area. Again, please keep their identity a secret.</p> <a class="btn btn-end" href="/web/"><span id="text15">Continue</span></a> </div> </div> </div> <div class="unsubscribe"><a href="/unsubscribe.aspx">Unsubscribe</a></div> </div> <script language="JavaScript" type="text/javascript"> function clear_delay(e) { window.clearTimeout(e) } function run_loading_run_1(e) { timeoutID1 = window.setTimeout(run_loading_1, e) } function run_loading_1() { $(".thank_for_close, .run_loading_2").fadeIn(); $(".main_review").hide() } function run_loading_run_2(e) { timeoutID2 = window.setTimeout(run_loading_2, e) } function run_loading_2() { $(".thank_for_close, .run_loading_2").hide(); $(".run_loading_3, .li_run_loading_1, .li_run_loading_2").fadeIn() } function run_loading_run_3(e) { timeoutID3 = window.setTimeout(run_loading_3, e) } function run_loading_3() { $(".run_loading_3").hide(); $(".run_loading_4, .li_run_loading_3").fadeIn() } function run_loading_run_4(e) { timeoutID3 = window.setTimeout(run_loading_4, e) } function run_loading_4() { $(".run_loading_4, .loading").hide(); $(".li_run_loading_4, li_run_loading_5, .run_loading_5, .show_end").fadeIn() } $(function () { $(document).on("click", ".next", function (e) { e.preventDefault(); $(this).parent().hide().next().fadeIn() }); $(document).on("click", ".run_loading", function (e) { e.preventDefault(); $(this).parent().hide().next().fadeIn(); $(".step4 .loading").show(); run_loading_run_1("1000"); run_loading_run_2("2250"); run_loading_run_3("3000"); run_loading_run_4("4000") }) }) </script> <script src="/media/dating/tinder2/js/wow.min.js"></script> <script src="/media/dating/tinder2/js/bootstrap.js" type="text/javascript"></script> <script src="/media/dating/tinder2/js/touchswipe.min.js"></script> <script type="text/javascript"> $("#example, body").vegas({ delay: 2500, timer: false, shuffle: true, timer: true, transition: 'fade', transitionDuration: 2000, slides: ( {src: '/media/dating/tinder2/images/slide1.jpg'}, {src: '/media/dating/tinder2/images/slide2.jpg'}, {src: '/media/dating/tinder2/images/slide3.jpg'}, {src: '/media/dating/tinder2/images/slide4.jpg'} ) }); </script> <script src="/media/dating/tinder2/js/timer.js"></script> <script src="/media/bb.js"></script> </body> </html>

I have no idea how to get rid of this bullshit code and prevent it from keeping coming back.

Our 2021 Site Battle Madness Champion is…. | Forum Promotion

View attachment 9134

Credit to @meetdilip for the above graphic.

So, Discussion Hub (@Ash) is our 2021 SBM champion! What do you win?

  • $100 via PayPal/Venmo/Zelle/Cash App
  • 300 FP$
  • SBM Profile Medal

In second place, we have GPTForum. What do you win?

  • $50 via PayPal/Venmo/Zelle/Cash App
  • 250 FP$
  • SBM Profile Medal

Our third and fourth place participants (Bizdustry and MyAnimeForum.net) have won this:

  • $25 via PayPal/Venmo/Zelle/Cash App
  • 200 FP$
  • SBM Profile Medal

I’ve sent the FP$ prize to the owners of the above forums, and I’ve reached out to each of you about getting your payment information for your cash prizes. @Malcolm will be hooking you guys up with an official SBM medal/badge to display on your profile.

Once again, congratulations to Discussion Hub on winning Site Battle Madness! Thank you to everyone who participated this year. :)