What are recognized ways for searching a specific string like “video234.mp4” in the DOM of a large indexing site with pre-existing pages?

I’m trying to search off a whole site for specific string in the source code of a specific page that exists on the site, I’m thinking of a scrawler to do this, is a scrawler intended to do this or are there more efficient way?

Unlike indexing sites like Google etc, which results can vary even if the same request is made another time, this site does only have pages created by the user which makes it a bit more easier to make it possible to search off the site. The content isn’t served by javascript so this isn’t an obstacle.

Add custom admin menu item for pages using a certain template

I am looking to add a new, custom menu item to the WordPress admin sidebar that displays pages that use a certain template. For example: a group of pages uses the template called “Retailer Sendout” (page-retailer-sendout.php) would be displayed below the default “Pages” top-level menu item.

I have tried the following URL combinations, but none of them have worked so far.

  • http://domain.test/wp-admin/edit.php?post_type=page&page_template=page-retailer-sendout
  • http://domain.test/wp-admin/edit.php?post_type=pagetemplate=page-retailer-sendout
  • http://domain.test/wp-admin/edit.php?post_type=page&page_template=retailer_sendout

I have also tested some admin menu customization plugins, but they do not offer the ability to link to pages with a specific template name.

I am comfortable with adding a custom function to the theme’s functions.php file, but I do not know where to start.

Any help is greatly appreciated.

Bulk WordPress Pages

I’m adding pages in bulk and want to use the page title throughout multiple spots in the template. For Instance; “Smithtown Real Estate” is the page title. I have 3-4 boxes that will have different uses. One being “Smithtown Real Estate For Sale”, “Smithtown Real Estate Home Values”, “Smithtown Real Estate Statistics” etc. There will be 50+ pages of different cities. How do I just pull the title name into the text blocks I want? THANK YOU!

How to find the size of offset w an the maximum number of pages per segment?

I am learning about Operating Systems, but the topic of physical and logical address translating seems a bit complicated to me.

So I am asked to find the size of offset w and the maximum number of pages per each segment, while I know that:

  • The logical address size is 16 bits,
  • Page size is 256 words,
  • and the segment table contains 2^10 entries.

Package of websites and some large Facebook pages

I will either sell these all as a package (which is what I prefer) or one at a time but the price will be higher one at a time. I have one FB page that is car for sale related that has about 100k followers, one that is a dating page that has 26k followers, one that is business investment related with 56k followers, and a maxbounty affiliate one that is active with 7800 plus the sites.

I dont really use the sites a whole lot. They are really just to drive offers to but I have seven sites…

Package of websites and some large Facebook pages

What Same Origin Policy related risks are there with static pages?

I am wondering what risks there are if you have static pages on the same host that don’t trust each other. A key concept of Javascript and web security is the Same Origin Policy (SOP), which is also the reason why we need to avoid XSS. If there’s e.g. a blog on example.org with an admin interface on example.org/admin and an attacker can place some javascript on example.org/foo then the attacker can execute javascript that e.g. will create a new admin account or perform other actions on behalf of the admin. I generally understand how this is happening.

However I wonder the following: If the pages on example.org are all static, i.e. no forms that perform actions or endpoints that act on POST requests, does the SOP still matter?

I was thinking of attacks like: Can example.org/foo/ open example.org/bar/, but with manipulated content? This could be useful e.g. if example.org/foo hosts downloads that an attacker can manipulate or redirect. I have tried a few things, but I wasn’t able to perform such an attack. (One way might be ServiceWorkers, but they are path constrained, which limits possibilities quite a bit.)

And are there other attacks that one should care about in purely static scenarios?