Skip to content

Instantly share code, notes, and snippets.

View GhanshyamBhava's full-sized avatar
💻
TYPO3 Dev mode

Ghanshyam Bhava GhanshyamBhava

💻
TYPO3 Dev mode
  • Bhavnagar, gujarat
View GitHub Profile
@GhanshyamBhava
GhanshyamBhava / .htaccess
Created February 1, 2021 11:21
htacces for better security setup for your website.
# Security header for website
Header set X-Permitted-Cross-Domain-Policies "none"
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection "1; mode=block"
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
Header set X-Frame-Options "SAMEORIGIN"
Header set Feature-Policy "geolocation 'self'; vibrate 'none'"
Header set Expect-CT enforce,max-age=2592000
Header set Referrer-Policy "origin"
@GhanshyamBhava
GhanshyamBhava / TYPO3-Indexed-search.txt
Created January 20, 2021 05:01
Code snippet to add TYPO3 fluid base indexed search for to website header or somewhere in the website according to your preference using typoscript object.
# Fluid Template (Search.html) :
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:form action="search" method="post" action="search" controller="Search" extensionName="indexedsearch" pluginName="pi2" pageUid="5">
<label for="sword">Search: </label>
<f:form.textfield id="sword" name="search[sword]" value="{sword}" class="form-control" />
<f:form.submit name="search[submitButton]" value="Search" />
</f:form>
</html>
# You can use below lib object everywhere in fluid template!
@GhanshyamBhava
GhanshyamBhava / httpd-ssl.conf.txt
Created April 26, 2018 13:18
TYPO3 CMS Apache configuration for windows
#
# This is the Apache server configuration file providing SSL support.
# It contains the configuration directives to instruct the server how to
# serve pages over an https connection. For detailed information about these
# directives see <URL:http://httpd.apache.org/docs/2.4/mod/mod_ssl.html>
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#